centos 8 saltstack安装

  1. Run the following commands to install the SaltStack repository and key:
    sudo rpm --import https://repo.saltproject.io/py3/redhat/8/x86_64/latest/SALTSTACK-GPG-KEY.pub
    curl -fsSL https://repo.saltproject.io/py3/redhat/8/x86_64/latest.repo | sudo tee /etc/yum.repos.d/salt.repo
  2. Run sudo yum clean expire-cache
  3. Install the salt-minion, salt-master, or other Salt components:
    • 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
  4. Enable and start service for salt-minion, salt-master, or other Salt components:
    • 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
Share