salt/doc/topics/installation/ubuntu.rst

63 lines
1.6 KiB
ReStructuredText
Raw Normal View History

2012-10-25 19:09:07 +00:00
===================
Ubuntu Installation
===================
2012-10-25 19:09:07 +00:00
Add repository
--------------
2012-12-20 19:20:48 +00:00
The latest packages for Ubuntu are published in the saltstack PPA. If you have
the ``add-apt-repository`` utility, you can add the repository and import the
key in one step:
.. code-block:: bash
sudo add-apt-repository ppa:saltstack/salt
.. admonition:: add-apt-repository: command not found?
The add-apt-repository command is not always present on Ubuntu systems.
This can be fixed by installing `software-properties-common`::
sudo apt-get install software-properties-common
2012-12-20 19:20:48 +00:00
Alternately, manually add the repository and import the PPA key with these commands:
.. 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
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
sudo apt-get update
2012-12-20 19:20:48 +00:00
2012-10-25 19:09:07 +00:00
Install packages
----------------
2012-10-25 19:09:07 +00:00
Install the Salt master, minion, or syndic from the repository with the apt-get
command. These examples each install one daemon, but more than one package name
may be given at a time:
2012-10-25 19:09:07 +00:00
.. code-block:: bash
2012-10-25 19:09:07 +00:00
sudo apt-get install salt-master
2012-10-25 19:27:12 +00:00
.. code-block:: bash
2012-10-25 19:09:07 +00:00
sudo apt-get install salt-minion
2012-10-25 19:27:12 +00:00
.. code-block:: bash
2012-10-25 19:09:07 +00:00
sudo apt-get install salt-syndic
.. _ubuntu-config:
Post-installation tasks
=======================
Now go to the :doc:`Configuring Salt</topics/configuration>` page.