salt-common/sls/clickhouse/service.sls
2019-03-19 18:38:28 +03:00

48 lines
1.0 KiB
Plaintext

/etc/clickhouse-server/:
file.directory:
- create: True
- dir_mode: 755
- user: clickhouse
- group: clickhouse
/etc/clickhouse-server/config.xml:
file.managed:
# - source: salt://clickhouse/files/server.xml
# - template: genshi
- mode: 640
- user: clickhouse
- group: clickhouse
- require:
- file: /etc/clickhouse-server/
/etc/clickhouse-server/users.xml:
file.managed:
# - source: salt://clickhouse/files/user.xml
# - template: genshi
- mode: 640
- user: clickhouse
- group: clickhouse
- require:
- file: /etc/clickhouse-server/
/var/log/clickhouse-server/:
file.directory:
- create: True
- dir_mode: 755
- file_mode: 640
- user: clickhouse
- group: clickhouse
- recurse:
- user
- group
- mode
clickhouse-server:
service.running:
- enabled: True
- watch:
- file: /etc/clickhouse-server/config.xml
- file: /etc/clickhouse-server/users.xml
- file: /var/log/clickhouse-server/