salt/doc/topics/installation/ubuntu.rst

62 lines
1.5 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-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:
.. 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
sudo apt-get update
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:
Configuration
2012-10-25 19:09:07 +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-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-10-25 19:09:07 +00:00
After making any configuration changes, re-start the affected daemons:
.. 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