mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
cf365f77cd
This commit modifes a number of files which have command-line examples so that the code-block directive is used. This provides more visually-appealing syntax highlighting. More commits like this will follow, this commit is part of an overall documentation audit that I am performing.
69 lines
1.8 KiB
ReStructuredText
69 lines
1.8 KiB
ReStructuredText
===================
|
|
Ubuntu Installation
|
|
===================
|
|
|
|
Add repository
|
|
--------------
|
|
|
|
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 `python-software-properties`::
|
|
|
|
sudo apt-get install python-software-properties
|
|
|
|
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.
|
|
|
|
Alternately, manually add the repository and import the PPA key with these
|
|
commands:
|
|
|
|
.. code-block:: bash
|
|
|
|
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 -
|
|
|
|
After adding the repository, update the package management database:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo apt-get update
|
|
|
|
|
|
Install packages
|
|
----------------
|
|
|
|
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:
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo apt-get install salt-master
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo apt-get install salt-minion
|
|
|
|
.. code-block:: bash
|
|
|
|
sudo apt-get install salt-syndic
|
|
|
|
.. _ubuntu-config:
|
|
|
|
Post-installation tasks
|
|
=======================
|
|
|
|
Now go to the :doc:`Configuring Salt</topics/configuration>` page.
|
|
|