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 $releaseverbaseurl=https://repo.saltstack.com/yum/redhat/$releasever/$basearch/latestenabled=1gpgcheck=1gpgkey=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-sshyum install salt-syndic
yum install salt-cloud

执行安装命令slave

yum install salt-minion

然后以服务的形式,自启动

systemctl enable salt-master.servicesystemctl start salt-master.servicesystemctl enable salt-minion.servicesystemctl 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.versionsalt '*' 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检测方法

Two stage U-Boot design

Two-stage Faster RCNN系列基础知识

为什么二阶段(two-stage)目标检测算法比一阶段(one-stage)目标检测算法精度高

目标检测 — one-stage检测之YOLO

saltstack一键部署高可用