1,簡(jiǎn)介
1)
salt-master啟動(dòng)時(shí)可以指定-c參數(shù),指定配置路徑;image.png這時(shí)候會(huì)使用/home/vttdeploy/salt/config/master配置文件
默認(rèn)使用/etc/salt/master配置文件。
2)default_include: /home/vttdeploy/salt/config/master.d/.confimage.png
可以將分組信息單獨(dú)包含進(jìn)來(lái)
vim /home/vttdeploy/salt/config/master.d/groups.conf
nodegroups:
api_deploy_group1: 'L@l-qa-duobeitest-app1.cls.beta.ali.dm,l-qa-duobeitest-app2.cls.beta.ali.dm'
3)配置參數(shù)
default_include: /home/vttdeploy/salt/config/master.d/.conf
user: root
publish_port: 4505
ret_port: 4506
pidfile: /home/vttdeploy/salt/run/salt-master.pid
pki_dir: /home/vttdeploy/salt/pki/master
timeout: 5default timeout for the salt command and api.
autosign_file: /home/vttdeploy/salt/config/autosign.confincoming keys specified in the autosign_file will be automatically accepted. 可以使用正則
file_roots:
base:
- /home/vttdeploy/salt/srv/salt
pillar_roots:building of global data 字典格式,數(shù)據(jù)通過(guò)key/value的格式進(jìn)行存儲(chǔ),top.sls文件作為入口,組織其它的pillar文件。
base:
- /home/vttdeploy/salt/srv/pillar
eg: vim /home/vttdeploy/salt/srv/pillar/top.sls
data.sls db2.sls top.sls
base:
'l-qa-duobeitest-db2.cls.beta.ali.dm':
- db2
- data

