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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2023-03-13 golang示例项目 客户信息关系系统