CD stage two saltstack
Posted python和devops
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CD stage two saltstack相关的知识,希望对你有一定的参考价值。
##安装-centos|redhat
master&&slave
add repo
[saltstack-repo]
name=SaltStack repo for Red Hat Enterprise Linux $releasever
baseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest
enabled=1
gpgcheck=1
gpgkey=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/SALTSTACK-GPG-KEY.pub
https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latest/base/RPM-GPG-KEY-CentOS-7
执行安装命令master
yum install salt-master
yum install salt-minion
yum install salt-ssh
yum install salt-syndic
yum install salt-cloud
执行安装命令slave
yum install salt-minion
然后以服务的形式,自启动
systemctl enable salt-master.service
systemctl start salt-master.service
systemctl enable salt-minion.service
systemctl start salt-minion.service
配置salt
/etc/salt/master
- #interface: 0.0.0.0
+ interface: 10.0.0.1
/etc/salt/minion
- #master: salt
+ master: 10.0.0.1
debug
salt-master --log-level=debug
建立master,slave关系
salt-key -A
test
salt alpha test.version
salt '*' test.version
##reference
https://docs.saltstack.com/en/latest/topics/installation/index.html#quick-install
以上是关于CD stage two saltstack的主要内容,如果未能解决你的问题,请参考以下文章
NeurIPS 2021 | CDN:首个融合two-stage和one-stage思想的HOI检测方法