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: '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: 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
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容