2016-02-25 09:51:40 +00:00
|
|
|
.. _installation-ubuntu:
|
|
|
|
|
|
|
|
======
|
|
|
|
Ubuntu
|
|
|
|
======
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2015-09-29 20:08:48 +00:00
|
|
|
.. _installation-ubuntu-repo:
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2016-03-23 20:00:30 +00:00
|
|
|
Installation from the Official SaltStack Repository
|
|
|
|
===================================================
|
2015-09-29 18:07:50 +00:00
|
|
|
|
2016-06-15 17:52:02 +00:00
|
|
|
Packages for Ubuntu 16 (Xenial), Ubuntu 14 (Trusty), and Ubuntu 12 (Precise)
|
|
|
|
are available in the SaltStack repository.
|
2015-09-29 18:07:50 +00:00
|
|
|
|
2016-06-15 17:52:02 +00:00
|
|
|
Instructions are at https://repo.saltstack.com/#ubuntu.
|
2016-02-25 09:02:07 +00:00
|
|
|
|
2016-03-23 20:00:30 +00:00
|
|
|
Installation from the Community-Maintained Repository
|
|
|
|
=====================================================
|
2015-09-29 18:07:50 +00:00
|
|
|
|
|
|
|
Packages for Ubuntu are also published in the saltstack PPA. If you have
|
2014-12-11 03:35:09 +00:00
|
|
|
the ``add-apt-repository`` utility, you can add the repository and import the
|
2012-12-20 19:20:48 +00:00
|
|
|
key in one step:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo add-apt-repository ppa:saltstack/salt
|
|
|
|
|
2015-03-29 07:31:07 +00:00
|
|
|
In addition to the main repository, there are secondary repositories for each
|
2015-09-29 18:07:50 +00:00
|
|
|
individual major release. These repositories receive security and point
|
|
|
|
releases but will not upgrade to any subsequent major release. There are
|
|
|
|
currently several available repos: salt16, salt17, salt2014-1, salt2014-7,
|
|
|
|
salt2015-5. For example to follow 2015.5.x releases:
|
2015-03-29 07:31:07 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2015-09-29 18:07:50 +00:00
|
|
|
sudo add-apt-repository ppa:saltstack/salt2015-5
|
2015-03-29 07:31:07 +00:00
|
|
|
|
2013-03-21 02:23:55 +00:00
|
|
|
.. admonition:: add-apt-repository: command not found?
|
|
|
|
|
2013-06-30 23:05:29 +00:00
|
|
|
The ``add-apt-repository`` command is not always present on Ubuntu systems.
|
2014-07-14 17:37:13 +00:00
|
|
|
This can be fixed by installing `python-software-properties`:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
2013-03-21 02:23:55 +00:00
|
|
|
|
2013-06-30 21:39:23 +00:00
|
|
|
sudo apt-get install python-software-properties
|
2013-03-21 02:23:55 +00:00
|
|
|
|
2014-11-14 00:13:50 +00:00
|
|
|
The following may be required as well:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
sudo apt-get install software-properties-common
|
|
|
|
|
2013-06-30 23:05:29 +00:00
|
|
|
Note that since Ubuntu 12.10 (Raring Ringtail), ``add-apt-repository`` is
|
|
|
|
found in the `software-properties-common` package, and is part of the base
|
|
|
|
install. Thus, ``add-apt-repository`` should be able to be used
|
|
|
|
out-of-the-box to add the PPA.
|
|
|
|
|
2013-08-11 02:55:51 +00:00
|
|
|
Alternately, manually add the repository and import the PPA key with these
|
|
|
|
commands:
|
2012-05-20 15:49:16 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
echo deb http://ppa.launchpad.net/saltstack/salt/ubuntu `lsb_release -sc` main | sudo tee /etc/apt/sources.list.d/saltstack.list
|
2012-10-31 18:11:06 +00:00
|
|
|
wget -q -O- "http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4759FA960E27C0A6" | sudo apt-key add -
|
2012-12-20 19:20:48 +00:00
|
|
|
|
|
|
|
After adding the repository, update the package management database:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2012-06-05 18:39:51 +00:00
|
|
|
sudo apt-get update
|
|
|
|
|
2016-02-25 08:24:55 +00:00
|
|
|
.. _ubuntu-install-pkgs:
|
2012-12-20 19:20:48 +00:00
|
|
|
|
2016-02-25 09:02:07 +00:00
|
|
|
Install Packages
|
2014-10-08 21:56:28 +00:00
|
|
|
================
|
2012-07-22 00:52:56 +00:00
|
|
|
|
2016-02-25 09:02:07 +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:
|
2012-06-05 18:47:32 +00:00
|
|
|
|
2016-02-25 08:24:55 +00:00
|
|
|
- ``apt-get install salt-api``
|
|
|
|
- ``apt-get install salt-cloud``
|
2015-09-29 18:07:50 +00:00
|
|
|
- ``apt-get install salt-master``
|
|
|
|
- ``apt-get install salt-minion``
|
|
|
|
- ``apt-get install salt-ssh``
|
|
|
|
- ``apt-get install salt-syndic``
|
2014-12-29 18:13:13 +00:00
|
|
|
|
2012-07-22 00:52:56 +00:00
|
|
|
.. _ubuntu-config:
|
|
|
|
|
2012-11-25 16:23:01 +00:00
|
|
|
Post-installation tasks
|
|
|
|
=======================
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2014-12-29 18:13:13 +00:00
|
|
|
Now go to the :doc:`Configuring Salt</ref/configuration/index>` page.
|