跳至主要內容

安装

酷风小于 1 分钟

安装

官方库及 安装 文档open in new window

环境信息

  • version: 3005.1 (安装时间 2022/11/15)
Salt Version:
          Salt: 3005.1
  • OS: Centos7

yum 安装

  • 管理端(控制编排):salt-master

  • 客户端(执行任务,被管理设施):salt-minion

  • yum 安装

# yum源
sudo rpm --import https://repo.saltproject.io/py3/redhat/7/x86_64/3004/SALTSTACK-GPG-KEY.pub
curl -fsSL https://repo.saltproject.io/py3/redhat/7/x86_64/3004.repo | sudo tee /etc/yum.repos.d/salt.repo

sudo yum clean expire-cache

# salt按需安装

sudo yum install salt-master
sudo yum install salt-minion
sudo yum install salt-ssh
sudo yum install salt-syndic
sudo yum install salt-cloud
sudo yum install salt-api

# salt服务管理
sudo systemctl enable salt-master && sudo systemctl start salt-master
sudo systemctl enable salt-minion && sudo systemctl start salt-minion
sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
sudo systemctl enable salt-api && sudo systemctl start salt-api