2013-01-25 19:33:43 +00:00
|
|
|
===================
|
|
|
|
Debian Installation
|
|
|
|
===================
|
2012-07-05 22:05:20 +00:00
|
|
|
|
2013-01-25 19:33:43 +00:00
|
|
|
Currently the latest packages for Debian are published in Martin F. Krafft's
|
|
|
|
personal debian.org repository.
|
2012-12-20 16:05:17 +00:00
|
|
|
|
2013-03-07 15:18:43 +00:00
|
|
|
Configure Apt
|
2013-03-07 16:54:18 +00:00
|
|
|
-------------
|
2012-07-05 22:05:20 +00:00
|
|
|
|
2013-01-25 19:33:43 +00:00
|
|
|
Setup apt to install Salt from the repository and use Debian's stable (squeeze)
|
|
|
|
backports for dependencies:
|
2012-07-05 22:05:20 +00:00
|
|
|
|
2013-01-25 19:33:43 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
2013-01-25 19:40:24 +00:00
|
|
|
for i in salt-{common,master,minion,syndic,doc} sysvinit-utils; do
|
2013-01-25 19:33:43 +00:00
|
|
|
echo "Package: $i"
|
|
|
|
echo "Pin: release a=squeeze-backports"
|
|
|
|
echo "Pin-Priority: 600"
|
|
|
|
echo
|
|
|
|
done > /etc/apt/preferences.d/local-salt-backport.pref
|
|
|
|
|
|
|
|
Add repository
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Add the repository to the list of sources:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
cat <<_eof > /etc/apt/sources.list.d/local-madduck-backports.list
|
|
|
|
deb http://debian.madduck.net/repo squeeze-backports main
|
|
|
|
deb-src http://debian.madduck.net/repo squeeze-backports main
|
|
|
|
_eof
|
|
|
|
|
|
|
|
Import the repository key.
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
wget -q -O- "http://debian.madduck.net/repo/gpg/archive.key" | apt-key add -
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
You can optionally verify the key integrity with ``sha512sum`` using the
|
|
|
|
public key signature shown here. E.g::
|
|
|
|
|
2013-03-31 19:21:29 +00:00
|
|
|
echo "8b1983fc2d2c55c83e2bbc15d93c3fc090c8e0e92c04ece555a6b6d8ff26de8b4fc2ccbe1bbd16a6357ff86b8b69fd261e90d61350e07a518d50fc9f5f0a1eb3 archive.key" | sha512sum -c
|
2013-01-25 19:33:43 +00:00
|
|
|
|
|
|
|
Update the package database:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
apt-get install salt-master
|
2012-07-22 00:52:56 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2012-11-25 16:23:01 +00:00
|
|
|
apt-get install salt-minion
|
2012-07-22 00:52:56 +00:00
|
|
|
|
2013-01-25 19:33:43 +00:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
apt-get install salt-syndic
|
|
|
|
|
|
|
|
.. _Debian-config:
|
|
|
|
|
|
|
|
Post-installation tasks
|
|
|
|
=======================
|
|
|
|
|
|
|
|
Now go to the :doc:`Configuring Salt</topics/configuration>` page.
|
|
|
|
|
2012-12-20 16:05:17 +00:00
|
|
|
|
2013-01-25 19:33:43 +00:00
|
|
|
Packages from Source
|
|
|
|
====================
|
2012-07-22 00:52:56 +00:00
|
|
|
|
2012-12-20 16:05:17 +00:00
|
|
|
To build your own salt Debian packages on squeeze use:
|
2012-07-22 00:52:56 +00:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
cat <<EOF | sudo tee /etc/apt/sources.list.d/backports.list
|
|
|
|
deb http://backports.debian.org/debian-backports squeeze-backports main
|
|
|
|
EOF
|
2012-11-25 16:23:01 +00:00
|
|
|
apt-get update
|
2012-12-20 16:05:17 +00:00
|
|
|
apt-get install build-essential fakeroot
|
|
|
|
apt-get install python-argparse python-zmq
|
|
|
|
apt-get -t squeeze-backports install debhelper python-sphinx
|
|
|
|
|
|
|
|
After installing the necessary dependencies build the packages with:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
git clone https://github.com/saltstack/salt.git
|
|
|
|
cd salt
|
|
|
|
fakeroot debian/rules binary
|
|
|
|
|
|
|
|
You will need to install the salt-common package along with the salt-minion or
|
|
|
|
salt-master packages. For example:
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
dpkg -i salt-common_<version>.deb salt-minion<version>.deb
|
|
|
|
apt-get -f install
|
|
|
|
|
|
|
|
The last command pulls in the required dependencies for your salt packages.
|
|
|
|
|
2012-11-25 16:23:01 +00:00
|
|
|
For more information how to use debian-backports see
|
|
|
|
http://backports-master.debian.org/Instructions/
|
2012-07-22 00:52:56 +00:00
|
|
|
|