salt-Debian GNU/Linux / Raspbian-install

DEBIAN GNU/LINUX / RASPBIAN

Debian GNU/Linux distribution and some derivatives such as Raspbian already have included Salt packages to their repositories. However, current stable release codenamed "Jessie" contains old outdated Salt release. It is recommended to use SaltStack repository for Debian as described below.

Installation from official Debian and Raspbian repositories is described here.

Debian GNU/Linux 發行版和一些衍生版比如Raspbian,在這些版本的倉庫中已經有Salt 包。然而,現在的穩定版本代碼名字Jessie,Jessie包含老的、過時的Salt版本。對於Debian,我們推薦用SaltStack倉庫,描述如下:

從官方的Debian和Raspbian倉庫中安裝,在下面描述:

---------------------------------------------------------------------------------------------------------------------------------------------------

INSTALLATION FROM THE OFFICIAL SALTSTACK REPOSITORY

Packages for Debian 8 (Jessie) and Debian 7 (Wheezy) are available in the Official SaltStack repository.

Instructions are at https://repo.saltstack.com/#debian.

從官方的SALTSTACK倉庫裏安裝

在官方的Saltstack倉庫中,Debian 8(Jessie)和Debian 7(Wheezy)的包都是可用的。

https://repo.saltstack.com/#debian上有介紹。

---------------------------------------------------------------------------------------------------------------------------------------------------

Note

Regular security support for Debian 7 ended on April 25th 2016. As a result, 2016.3.1 and 2015.8.10 will be the last Salt releases for which Debian 7 packages are created.

注意

截止到2016年4月25日,對於Debian 7的常規的安全支持結束了。這就導致了,2016.3.1和2015.8.10將是Debian7上最後的兩個軟件版本。

---------------------------------------------------------------------------------------------------------------------------------------------------

INSTALLATION FROM THE DEBIAN / RASPBIAN OFFICIAL REPOSITORY

Stretch (Testing) and Sid (Unstable) distributions are already contain mostly up-to-date Salt packages built by Debian Salt Team. You can install Salt components directly from Debian.

從DEBIAN/RASPBIAN官方倉庫裏安裝

Debian的Salt團隊使Stretch(測試版)和Sid(不穩定版)發行版已經包含大多數最新的Salt包。你可以直接從Debian安裝Salt的組件。

---------------------------------------------------------------------------------------------------------------------------------------------------

On Jessie (Stable) there is an option to install Salt minion from Stretch with python-tornadodependency from jessie-backports repositories.

從Stretch到Jessie版本,用jessie-backports倉庫並且用python-tornadodependency選項安裝Salt minion。

---------------------------------------------------------------------------------------------------------------------------------------------------

To install fresh release of Salt minion on Jessie:

  1. Add jessie-backports and stretch repositories:

    Debian:

    echo 'deb http://httpredir.debian.org/debian jessie-backports main' >> /etc/apt/sources.listecho 'deb http://httpredir.debian.org/debian stretch main' >> /etc/apt/sources.list

    Raspbian:

    echo 'deb http://archive.raspbian.org/raspbian/ stretch main' >> /etc/apt/sources.list
  2. Make Jessie a default release:

    echo 'APT::Default-Release "jessie";' > /etc/apt/apt.conf.d/10apt
  3. Install Salt dependencies:

    Debian:

    apt-get update
    apt-get install python-zmq python-tornado/jessie-backports salt-common/stretch

    Raspbian:

    apt-get update
    apt-get install python-zmq python-tornado/stretch salt-common/stretch
  4. Install Salt minion package from Stretch:

    apt-get install salt-minion/stretch

在Jessie上面安裝最新的Salt minion版本:

  1. 添加 jessie-backports 和 stretch 倉庫:

    Debian:

    echo 'deb http://httpredir.debian.org/debian jessie-backports main' >> /etc/apt/sources.listecho 'deb http://httpredir.debian.org/debian stretch main' >> /etc/apt/sources.list

    Raspbian:

    echo 'deb http://archive.raspbian.org/raspbian/ stretch main' >> /etc/apt/sources.list
  2. 設置Jessie爲默認版本:

    echo 'APT::Default-Release "jessie";' > /etc/apt/apt.conf.d/10apt
  3. 安裝Salt所依賴的軟件:

    Debian:

    apt-get update
    apt-get install python-zmq python-tornado/jessie-backports salt-common/stretch

    Raspbian:

    apt-get update
    apt-get install python-zmq python-tornado/stretch salt-common/stretch
  4. 從Stretch倉庫安裝Salt minion:

    apt-get install salt-minion/stretch

---------------------------------------------------------------------------------------------------------------------------------------------------

INSTALL PACKAGES

Install the Salt master, minion or other packages from the repository with the apt-get command. These examples each install one of Salt components, but more than one package name may be given at a time:

  • apt-get install salt-api

  • apt-get install salt-cloud

  • apt-get install salt-master

  • apt-get install salt-minion

  • apt-get install salt-ssh

  • apt-get install salt-syndic

安裝包
用apt-get命令從倉庫裏面(源)安裝Salt master,minion或者其他軟件包.下面這個示例每次都是安裝一個Salt 組件,但是也可以一次安裝多個包。

---------------------------------------------------------------------------------------------------------------------------------------------------

POST-INSTALLATION TASKS

Now, go to the Configuring Salt page.

安裝後的工作

現在,去配置Salt的頁面。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章