-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.example
120 lines (108 loc) · 3.56 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
clickhouse:
packages:
# setting version to latest explicitly is dangerous. Package will be updated every time it becomes possible.
# omit this if no specific version required.
version: latest
server:
config_dir: /etc/clickhouse-server/
# automatically restarts service on config change. Might be inappropriate for clusters
restart_on_config_change: false
config:
# configs can be managed simply as files by Salt
# but filetree MUST be configured on salt-master side
files:
- etc/clickhouse-server/conf.d/yourfile.xml
- ...
# Otherwise, only if config_files are not in pillar, all parameters in YAML will be put to config as is.
# Except "@"-prefixed words, which used as xml attributes. For example:
compression:
"@incl": clickhouse_compression
"@replace": replace
case:
min_part_size: 10000000000
min_part_size_ratio: 0.01
method: zstd
interserver_http_port:
- "@incl": http
- 9009
# Will become (after clickhouse's YAML processing)
# <compression incl="clickhouse_compression" replace="replace">
# <case>
# <min_part_size>10000000000</min_part_size>
# <min_part_size_ratio>0.01</min_part_size_ratio>
# <method>zstd</method>
# </case>
# </compression>
# <interserver_http_port incl="http">9009</interserver_http_port>
# But without "@"
# sample:
# value: click
# <sample>
# <value>click</value>
# </sample>
# Lists should be written in the following way
zookeeper:
node:
- - "@index": 1
- host: 192.168.0.1
- port: 2181
- - "@index": 2
- host: 192.168.0.2
- port: 2181
- - "@index": 3
- host: 192.168.0.2
- port: 2181
# expands to
#
# <zookeeper>
# <node index=1>
# <host>192.168.0.1</host>
# <port>2181</port>
# </node>
# <node index=2>
# <host>192.168.0.2</host>
# <port>2181</port>
# </node>
# <node index=3>
# <host>192.168.0.3</host>
# <port>2181</port>
# </node>
# </zookeeper>
users:
%user_name%:
# Do not include both "password" and "password_sha256_hex" into pillar
# For secure password storage, use
password: # this will be converted to base64 in config file
# For other parameters schema is the same as for configuration
# except config_files are not supported for users.
quotas:
# same as for config. "files" are not supported
default:
"@replace": replace
interval:
duration: 3600
# ...
profiles:
# same as for config. "files" are not supported
web:
readonly: 1
# ...
# configuration for clickhouse-client. "files" are supported
# This example is suitable for RHEL/CentOS
client:
config:
openSSL:
client:
caConfig: '/etc/pki/tls/cert.pem'
repo:
# RHEL alternative repo for releases before 2019-08-02
name: altinity_clickhouse
baseurl: 'https://packagecloud.io/altinity/clickhouse/el/7/$basearch'
humanname: 'Altinity ClickHouse repo'
gpgkey: 'https://packagecloud.io/altinity/clickhouse/gpgkey'
gpgcheck: False
# Debian
name: 'deb http://repo.yandex.ru/clickhouse/deb/stable/ main/'
humanname: 'ClickHouse official repo'
keyid: E0C56BD4
keyserver: keyserver.ubuntu.com