salt-minion离线安装

1.在nexus做salt官方的yum源代理

http://xxxx/repository/gw-yum-proxys 代理https://repo.saltproject.io/salt/py3/

2.在yum仓库里上传repo文件及salt.sh安装文件

latest.repo 文件

复制代码
[salt-repo]
name=Salt repo for RHEL/CentOS 7 PY3
baseurl=http://xxxx/repository/gw-yum-proxys/redhat/$releasever/$basearch/latest
skip_if_unavailable=True
failovermethod=priority
priority=10
enabled=1
enabled_metadata=1
gpgcheck=0
复制代码

 

salt.sh安装文件

复制代码
#下载repo
curl -fsSL https://xxxx/packages/initial/salt/redhat/latest.repo | sudo tee /etc/yum.repos.d/salt.repo
#安装salt-minion
sudo yum install -y salt-minion
#修改配置文件
sudo cat <<EOF >>/etc/salt/minion.d/minion.conf
master: xxxx
id: `hostname -I | cut -d' ' -f1`
EOF
#启动salt-minion
sudo systemctl start salt-minion
#查看salt-minion状态
systemctl status salt-minion
复制代码

 

3.在服务器下载salt.sh文件并执行

wget https://xxxx/packages/initial/salt/redhat/salt.sh | sh salt.sh

 

posted @   潇潇暮鱼鱼  阅读(201)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2023-03-13 golang示例项目 客户信息关系系统
点击右上角即可分享
微信分享提示