mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
Add Dockerfile for building Salt Master + Minion image
This commit is contained in:
parent
8cd20b25a1
commit
01bf30b6c6
2 changed files with 39 additions and 13 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
FROM ubuntu-upstart:14.04
|
||||||
|
MAINTAINER "SaltStack Team"
|
||||||
|
|
||||||
|
# Bootstrap script options: install Salt Master by default
|
||||||
|
ENV BOOTSTRAP_OPTS='-M'
|
||||||
|
# Version of salt to install: stable or git
|
||||||
|
ENV SALT_VERSION=stable
|
||||||
|
|
||||||
|
ADD bootstrap-salt.sh /tmp/
|
||||||
|
|
||||||
|
# Prevent udev from being upgraded inside the container, dpkg will fail to configure it
|
||||||
|
RUN echo udev hold | dpkg --set-selections
|
||||||
|
# Upgrade System and Install Salt
|
||||||
|
RUN sudo sh /tmp/bootstrap-salt.sh -U -X -d $BOOTSTRAP_OPTS $SALT_VERSION && \
|
||||||
|
apt-get clean
|
||||||
|
RUN /usr/sbin/update-rc.d -f ondemand remove; \
|
||||||
|
update-rc.d salt-minion defaults && \
|
||||||
|
update-rc.d salt-master defaults || true
|
||||||
|
|
||||||
|
EXPOSE 4505 4506
|
22
README.rst
22
README.rst
|
@ -25,7 +25,7 @@ are high that your issue was already fixed.
|
||||||
Bootstrap
|
Bootstrap
|
||||||
=========
|
=========
|
||||||
|
|
||||||
If you're looking for the *one-liner* to install salt, please scroll to the bottom and use the
|
If you're looking for the *one-liner* to install Salt, please scroll to the bottom and use the
|
||||||
instructions for `Installing via an Insecure One-Liner`_.
|
instructions for `Installing via an Insecure One-Liner`_.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
@ -37,6 +37,9 @@ instructions for `Installing via an Insecure One-Liner`_.
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
The Salt Bootstrap script has a wide variety of options that can be passed as
|
||||||
|
well as several ways of obtaining the bootstrap script itself.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
These examples below show how to bootstrap Salt directly from GitHub or other Git repository.
|
These examples below show how to bootstrap Salt directly from GitHub or other Git repository.
|
||||||
|
@ -61,7 +64,7 @@ If you want to install a specific release version (based on the Git tags):
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
curl -o bootstrap_salt.sh -L https://bootstrap.saltstack.com
|
curl -o bootstrap_salt.sh -L https://bootstrap.saltstack.com
|
||||||
sudo sh bootstrap_salt.sh git v2015.8.7
|
sudo sh bootstrap_salt.sh git v2015.8.8
|
||||||
|
|
||||||
To install a specific branch from a Git fork:
|
To install a specific branch from a Git fork:
|
||||||
|
|
||||||
|
@ -96,7 +99,7 @@ Using ``wget`` to install your distribution's stable packages:
|
||||||
wget -O bootstrap_salt.sh https://bootstrap.saltstack.com
|
wget -O bootstrap_salt.sh https://bootstrap.saltstack.com
|
||||||
sudo sh bootstrap_salt.sh
|
sudo sh bootstrap_salt.sh
|
||||||
|
|
||||||
Install a specific version from git using ``wget``:
|
Installing a specific version from git using ``wget``:
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
|
@ -119,7 +122,7 @@ If you already have Python installed, ``python 2.6``, then it's as easy as:
|
||||||
python -m urllib "https://bootstrap.saltstack.com" > bootstrap_salt.sh
|
python -m urllib "https://bootstrap.saltstack.com" > bootstrap_salt.sh
|
||||||
sudo sh bootstrap_salt.sh git develop
|
sudo sh bootstrap_salt.sh git develop
|
||||||
|
|
||||||
All Python versions should support the following one liner:
|
All Python versions should support the following in-line code:
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
|
@ -167,17 +170,20 @@ The following examples illustrate how to install Salt via a one-liner.
|
||||||
Warning! These methods do not involve a verification step and assume that the delivered file
|
Warning! These methods do not involve a verification step and assume that the delivered file
|
||||||
is trustworthy.
|
is trustworthy.
|
||||||
|
|
||||||
|
Any of the example above which use two-lines can be made to run in a single-line
|
||||||
|
configuration with minor modifications.
|
||||||
|
|
||||||
Installing the latest stable release of Salt (default):
|
Installing the latest stable release of Salt (default):
|
||||||
|
|
||||||
.. code:: console
|
.. code:: console
|
||||||
|
|
||||||
curl -L https://bootstrap.saltstack.com | sudo sh -s -- stable
|
curl -L https://bootstrap.saltstack.com | sudo sh
|
||||||
|
|
||||||
or
|
Using ``wget`` to install your distribution's stable packages:
|
||||||
|
|
||||||
.. code:: console
|
.. code-block:: bash
|
||||||
|
|
||||||
curl -L https://bootstrap.saltstack.com | sudo sh -s
|
wget -O - https://bootstrap.saltstack.com | sudo sh
|
||||||
|
|
||||||
Installing the latest develop branch of Salt:
|
Installing the latest develop branch of Salt:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue