2012-10-25 19:09:07 +00:00
|
|
|
===================
|
|
|
|
Ubuntu Installation
|
|
|
|
===================
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
Add repository
|
|
|
|
--------------
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
The latest packages for Ubuntu are published in the saltstack PPA. Add the repository
|
|
|
|
to your system and refresh the package data with the following 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-06-05 18:39:51 +00:00
|
|
|
sudo apt-get update
|
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
Install packages
|
|
|
|
----------------
|
2012-07-22 00:52:56 +00:00
|
|
|
|
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-06-05 18:47:32 +00:00
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
.. code-block:: bash
|
2012-06-05 18:39:51 +00:00
|
|
|
|
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
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2012-07-22 00:52:56 +00:00
|
|
|
.. _ubuntu-config:
|
|
|
|
|
2012-05-20 15:49:16 +00:00
|
|
|
Configuration
|
2012-10-25 19:09:07 +00:00
|
|
|
-------------
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
Debian based systems will launch the daemons right after package install, but you
|
|
|
|
may need to make changes to the configuration files in /etc/salt (see the configuration
|
|
|
|
files), such as:
|
2012-02-29 20:41:38 +00:00
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
- set the minion id and salt master name in /etc/salt/minion
|
|
|
|
- enable the file_roots and pillar_roots options in /etc/salt/master
|
|
|
|
- configure syndic to relay commands from another master
|
2012-05-20 15:49:16 +00:00
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
After making any configuration changes, re-start the affected daemons:
|
2012-05-20 15:49:16 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
sudo restart salt-master
|
2012-10-25 19:29:10 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
sudo restart salt-minion
|
2012-10-25 19:29:10 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2012-10-25 19:09:07 +00:00
|
|
|
sudo restart salt-syndic
|
2012-05-20 15:49:16 +00:00
|
|
|
|