2015-09-14 21:17:59 +00:00
|
|
|
.. _installation-debian:
|
|
|
|
|
2016-02-26 11:30:22 +00:00
|
|
|
===========================
|
|
|
|
Debian GNU/Linux / Raspbian
|
|
|
|
===========================
|
|
|
|
|
|
|
|
Debian GNU/Linux distribution and some devariatives 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
|
|
|
|
:ref:`below <installation-debian-repo>`.
|
|
|
|
|
|
|
|
Installation from official Debian and Raspbian repositories is described
|
|
|
|
:ref:`here <installation-debian-raspbian>`.
|
2012-07-05 22:05:20 +00:00
|
|
|
|
2015-09-14 21:17:59 +00:00
|
|
|
.. _installation-debian-repo:
|
|
|
|
|
|
|
|
Installation from the SaltStack Repository
|
|
|
|
==========================================
|
|
|
|
|
2016-02-24 15:24:44 +00:00
|
|
|
2015.5 and later packages for Debian 8 ("Jessie") are available in the
|
2015-09-29 18:07:50 +00:00
|
|
|
SaltStack repository.
|
2015-09-14 21:17:59 +00:00
|
|
|
|
2016-02-24 15:24:44 +00:00
|
|
|
.. note::
|
|
|
|
SaltStack repository contains only packages suitable for ``i386`` (32-bit
|
|
|
|
Intel-compatible CPUs) and ``amd64`` (64-bit) architectures. While Salt
|
|
|
|
packages are built for all Debian ports (have ``all`` suffix in package
|
|
|
|
names), some of the dependencies are avaivable only for ``amd64`` systems.
|
|
|
|
|
2015-10-16 15:22:48 +00:00
|
|
|
.. important::
|
2016-02-24 15:24:44 +00:00
|
|
|
The repository folder structure changed in the 2015.8.3 release, though the
|
|
|
|
previous repository structure that was documented in 2015.8.1 can continue to
|
|
|
|
be used.
|
2015-10-16 15:22:48 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
To install using the SaltStack repository:
|
2015-09-14 21:17:59 +00:00
|
|
|
|
|
|
|
#. Run the following command to import the SaltStack repository key:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2015-12-16 21:44:35 +00:00
|
|
|
wget -O - https://repo.saltstack.com/apt/debian/8/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
|
2015-09-14 21:17:59 +00:00
|
|
|
|
|
|
|
#. Add the following line to ``/etc/apt/sources.list``:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2015-12-03 17:55:32 +00:00
|
|
|
deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main
|
2015-09-14 21:17:59 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
#. Run ``sudo apt-get update``.
|
2015-09-14 21:17:59 +00:00
|
|
|
|
2016-02-25 09:04:11 +00:00
|
|
|
#. Now go to the :ref:`packages installation <debian-install-pkgs>` section.
|
2012-12-20 16:05:17 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
Installation from the Community Repository
|
|
|
|
==========================================
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
The SaltStack community maintains a Debian repository at debian.saltstack.com.
|
|
|
|
Packages for Debian Old Stable, Stable, and Unstable (Wheezy, Jessie, and Sid)
|
|
|
|
for Salt 0.16 and later are published in this repository.
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
.. note::
|
|
|
|
Packages in this repository are community built, and it can
|
|
|
|
take a little while until the latest SaltStack release is available
|
|
|
|
in this repository.
|
2014-07-10 21:59:37 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
Jessie (Stable)
|
|
|
|
---------------
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
For Jessie, the following line is needed in either
|
|
|
|
``/etc/apt/sources.list`` or a file in ``/etc/apt/sources.list.d``:
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
deb http://debian.saltstack.com/debian jessie-saltstack main
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2015-04-30 13:48:32 +00:00
|
|
|
Wheezy (Old Stable)
|
2015-05-16 23:24:04 +00:00
|
|
|
-------------------
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2016-02-24 15:26:20 +00:00
|
|
|
For Wheezy, the following line is needed in either
|
2014-07-10 21:59:37 +00:00
|
|
|
``/etc/apt/sources.list`` or a file in ``/etc/apt/sources.list.d``:
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2014-07-10 21:59:37 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
deb http://debian.saltstack.com/debian wheezy-saltstack main
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
Squeeze (Old Old Stable)
|
|
|
|
------------------------
|
2014-06-05 20:01:53 +00:00
|
|
|
|
2016-02-24 15:26:20 +00:00
|
|
|
For Squeeze, you will need to enable the Debian backports repository
|
2015-09-29 18:07:50 +00:00
|
|
|
as well as the debian.saltstack.com repository. To do so, add the
|
|
|
|
following to ``/etc/apt/sources.list`` or a file in
|
|
|
|
``/etc/apt/sources.list.d``:
|
2014-06-05 20:01:53 +00:00
|
|
|
|
2014-07-10 21:59:37 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
deb http://debian.saltstack.com/debian squeeze-saltstack main
|
|
|
|
deb http://backports.debian.org/debian-backports squeeze-backports main
|
2014-06-05 20:01:53 +00:00
|
|
|
|
2016-02-24 15:26:20 +00:00
|
|
|
Stretch (Testing)
|
|
|
|
-----------------
|
|
|
|
|
|
|
|
For Stretch, the following line is needed in either
|
|
|
|
``/etc/apt/sources.list`` or a file in ``/etc/apt/sources.list.d``:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
deb http://debian.saltstack.com/debian stretch-saltstack main
|
|
|
|
|
2013-05-02 01:20:22 +00:00
|
|
|
Sid (Unstable)
|
2014-07-10 21:59:37 +00:00
|
|
|
--------------
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2016-02-24 15:26:20 +00:00
|
|
|
For Sid, the following line is needed in either
|
2014-07-10 21:59:37 +00:00
|
|
|
``/etc/apt/sources.list`` or a file in ``/etc/apt/sources.list.d``:
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2014-07-10 21:59:37 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
deb http://debian.saltstack.com/debian unstable main
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2016-02-25 09:04:11 +00:00
|
|
|
Import the repository key
|
|
|
|
-------------------------
|
2013-05-02 01:20:22 +00:00
|
|
|
|
2013-05-09 14:12:40 +00:00
|
|
|
You will need to import the key used for signing.
|
2013-01-25 19:33:43 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-05-02 01:20:22 +00:00
|
|
|
wget -q -O- "http://debian.saltstack.com/debian-salt-team-joehealy.gpg.key" | apt-key add -
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2014-12-11 03:35:09 +00:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
You can optionally verify the key integrity with ``sha512sum`` using the
|
2014-07-10 21:59:37 +00:00
|
|
|
public key signature shown here. E.g:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2013-05-02 01:20:22 +00:00
|
|
|
echo "b702969447140d5553e31e9701be13ca11cc0a7ed5fe2b30acb8491567560ee62f834772b5095d735dfcecb2384a5c1a20045f52861c417f50b68dd5ff4660e6 debian-salt-team-joehealy.gpg.key" | sha512sum -c
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2013-05-02 01:20:22 +00:00
|
|
|
Update the package database
|
|
|
|
---------------------------
|
2013-01-25 19:33:43 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
|
2016-02-26 11:30:22 +00:00
|
|
|
.. _installation-debian-raspbian:
|
|
|
|
|
|
|
|
Installation from the Debian / Raspbian Official Repository
|
|
|
|
===========================================================
|
2016-02-24 15:48:37 +00:00
|
|
|
|
|
|
|
Stretch (Testing) and Sid (Unstable) distributions are already contain mostly
|
2016-02-25 09:04:11 +00:00
|
|
|
up-to-date Salt packages built by Debian Salt Team. You can install Salt
|
|
|
|
components directly from Debian.
|
|
|
|
|
2016-02-26 13:10:37 +00:00
|
|
|
On Jessie (Stable) there is an option to install Salt minion from Stretch with
|
|
|
|
`python-tornado` dependency from `jessie-backports` repositories.
|
|
|
|
|
|
|
|
To install fresh release of Salt minion on Jessie:
|
|
|
|
|
|
|
|
#. Add `jessie-backports` and `stretch` repositories:
|
|
|
|
|
|
|
|
**Debian**:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
echo 'deb http://httpredir.debian.org/debian jessie-backports main' >> /etc/apt/sources.list
|
|
|
|
echo 'deb http://httpredir.debian.org/debian stretch main' >> /etc/apt/sources.list
|
|
|
|
|
|
|
|
**Raspbian**:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
echo 'deb http://archive.raspbian.org/raspbian/ stretch main' >> /etc/apt/sources.list
|
|
|
|
|
|
|
|
#. Make Jessie a default release:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
echo 'APT::Default-Release "jessie";' > /etc/apt/apt.conf.d/10apt
|
|
|
|
|
|
|
|
#. Install Salt dependencies:
|
|
|
|
|
2016-02-29 09:42:15 +00:00
|
|
|
**Debian**:
|
2016-03-01 15:36:23 +00:00
|
|
|
|
2016-02-29 09:42:15 +00:00
|
|
|
.. code-block:: bash
|
2016-03-01 15:36:23 +00:00
|
|
|
|
2016-02-29 09:42:15 +00:00
|
|
|
apt-get update
|
|
|
|
apt-get install python-zmq python-tornado/jessie-backports salt-common/stretch
|
|
|
|
|
|
|
|
**Raspbian**:
|
2016-03-01 15:36:23 +00:00
|
|
|
|
2016-02-26 13:10:37 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
apt-get update
|
2016-02-29 06:20:51 +00:00
|
|
|
apt-get install python-zmq python-tornado/stretch salt-common/stretch
|
2016-02-26 13:10:37 +00:00
|
|
|
|
|
|
|
#. Install Salt minion package from Stretch:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
apt-get install salt-minion/stretch
|
|
|
|
|
2016-02-25 09:04:11 +00:00
|
|
|
.. _debian-install-pkgs:
|
|
|
|
|
|
|
|
Install Packages
|
|
|
|
================
|
2016-02-24 15:48:37 +00:00
|
|
|
|
2016-02-25 09:04:11 +00:00
|
|
|
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:
|
2016-02-24 15:48:37 +00:00
|
|
|
|
2016-02-25 09:04:11 +00:00
|
|
|
- ``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``
|
2016-02-24 15:48:37 +00:00
|
|
|
|
2016-02-25 09:04:11 +00:00
|
|
|
.. _debian-config:
|
2013-01-25 19:33:43 +00:00
|
|
|
|
|
|
|
Post-installation tasks
|
2016-02-24 15:30:51 +00:00
|
|
|
=======================
|
2013-01-25 19:33:43 +00:00
|
|
|
|
2014-02-26 20:28:13 +00:00
|
|
|
Now, go to the :doc:`Configuring Salt </ref/configuration/index>` page.
|