Arch Linux

安装教程

Salt (stable) is currently available via the Arch Linux Official repositories. There are currently -git packages available in the Arch User repositories (AUR) as well.

稳定版本

Install Salt stable releases from the Arch Linux Official repositories as follows:

pacman -S salt-zmq

To install Salt stable releases using the RAET protocol, use the following:

pacman -S salt-raet

注解

transports

Unlike other linux distributions, please be aware that Arch Linux's package manager pacman defaults to RAET as the Salt transport. If you want to use ZeroMQ instead, make sure to enter the associated number for the salt-zmq repository when prompted.

追踪develop分支

安装bleeding edge版本的salt(包含很多bug!),使用-git package。安装 -git package方法如下:

wget https://aur.archlinux.org/packages/sa/salt-git/salt-git.tar.gz
tar xf salt-git.tar.gz
cd salt-git/
makepkg -is

注解

yaourt

如果一个像是Yaourt 这样的工具正在被使用,依赖项将会自动汇总和构建。

使用yaourt工具安装salt的命令:

yaourt salt-git

安装后的工作

systemd

激活Salt Master和/或Minion通过 systemctl ,如下:

systemctl enable salt-master.service
systemctl enable salt-minion.service

启动Master

一旦你完成了所有启动Salt Master之前的准备工作。你可以使用下面的命令启动Salt Master:

systemctl start salt-master

现在前往 配置Salt 页.