1,简介
1)
salt-master启动时可以指定-c参数,指定配置路径;
这时候会使用/home/vttdeploy/salt/config/master配置文件
默认使用/etc/salt/master配置文件。
2)default_include: /home/vttdeploy/salt/config/master.d/.conf
可以将分组信息单独包含进来
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)配置参数
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 字典格式,数据通过key/value的格式进行存储,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