salt-master配置文件

1,简介

1)salt-master启动时可以指定-c参数,指定配置路径;

image.png
这时候会使用/home/vttdeploy/salt/config/master配置文件
默认使用/etc/salt/master配置文件。
2)default_include: /home/vttdeploy/salt/config/master.d/ .conf
image.png

可以将分组信息单独包含进来
vim /home/vttdeploy/salt/config/master.d/groups.conf
nodegroups:
api_deploy_group1: '[email protected],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: 5 default timeout for the salt command and api.
autosign_file: /home/vttdeploy/salt/config/autosign.conf incoming 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

你可能感兴趣的:(salt-master配置文件)