Saltstack Installation

安装方式:
详见:http://repo.saltstack.com/
需要根据不同的python环境去进行安装。
CentOS/Redhat:
1. Run the following commands to install the SaltStack repository and key:
sudo yum install https://repo.saltstack.com/yum/redhat/salt-repo-latest-2.el6.noarch.rpm
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. (Upgrade only) Restart all upgraded services, for example:
sudo service salt-minion restart
Windows:
Latest Release
Installation executables:
AMD64: Salt-Minion-2018.3.1-Py2-AMD64-Setup.exe | MD5
x86: Salt-Minion-2018.3.1-Py2-x86-Setup.exe | MD5
SILENT INSTALLATION OPTIONS

The installer can be run silently by providing the /S option at the command line. The options /master and /minion-name allow for configuring the master hostname and minion name, respectively. Here’s an example of running a silent installation from the command line:
Salt-Minion-2018.3.1-Py2-AMD64-Setup.exe /S /master=yoursaltmaster /minion-name=yourminionname


Ubuntu:
Installs the latest release. Updating installs the latest release even if it is a new major version.
1. Run the following command to import the SaltStack repository key:
wget -O - https://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
2. Save the following file to /etc/apt/sources.list.d/saltstack.list:
deb http://repo.saltstack.com/apt/ubuntu/18.04/amd64/latest bionic main
3. Run sudo apt-get update
4. Install the salt-minion, salt-master, or other Salt components:
    * sudo apt-get install salt-master
    * sudo apt-get install salt-minion
    * sudo apt-get install salt-ssh
    * sudo apt-get install salt-syndic
    * sudo apt-get install salt-cloud
    * sudo apt-get install salt-api
5. (Upgrade only) Restart all upgraded services, for example:
sudo systemctl restart salt-minion
OS X:
Installation executables:
salt-2018.3.1-py2-x86_64.pkg | MD5
Browse Repo  
OS X Gatekeeper settings might prevent installation of the Salt package. If a warning appears during installation, open System Preferences > Security & Privacy > click Open Anyway
INITIAL CONFIGURATION

After the installation completes, run the following to configure the Salt minion ID, the Salt master location, and to start the required services.
sudo salt-config -i yourminionname -m yoursaltmaster
START AND STOP THE MINION SERVICE

On OS X, the Salt minion configuration file is in the standard /etc/salt/minion location. To stop the Salt minion, run the following:
sudo launchctl stop com.saltstack.salt.minion
To start the Salt minion, run the following:
sudo launchctl start com.saltstack.salt.minion
此条目发表在Saltstack分类目录,贴了, 标签。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注