Change saltstack bootstrap options
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -40,17 +40,16 @@ WORKDIR ${SALT_BUILD_DIR}
|
|||||||
## -M: install Salt Master by default
|
## -M: install Salt Master by default
|
||||||
## -N: Do not install salt-minion
|
## -N: Do not install salt-minion
|
||||||
## -X: Do not start daemons after installation
|
## -X: Do not start daemons after installation
|
||||||
## -U: Fully upgrade the system prior to bootstrapping Salt
|
## -P: Allow pip based installations
|
||||||
## -V: Install Salt into virtualenv
|
## -x: Changes the python version used to install a git version of salt
|
||||||
## -a: Pip install all Python pkg dependencies for Salt
|
ENV SALT_BOOTSTRAP_OPTS='-M -N -X -P -x python3'
|
||||||
ENV SALT_BOOTSTRAP_OPTS='-M -N -X -U -Va'
|
|
||||||
|
|
||||||
# Release version to install
|
# Release version to install
|
||||||
# https://github.com/saltstack/salt/releases
|
# https://github.com/saltstack/salt/releases
|
||||||
ENV SALT_GIT_RELEASE="v2018.3.3"
|
ENV SALT_VERSION="2018.3.3"
|
||||||
|
|
||||||
RUN curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
RUN curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
||||||
RUN sh bootstrap-salt.sh ${SALT_BOOTSTRAP_OPTS} git ${SALT_GIT_RELEASE}
|
RUN sh bootstrap-salt.sh ${SALT_BOOTSTRAP_OPTS} stable ${SALT_VERSION}
|
||||||
|
|
||||||
# Salt user
|
# Salt user
|
||||||
RUN useradd -d ${SALT_HOME} -ms /bin/bash -U -G root,sudo ${SALT_USER}
|
RUN useradd -d ${SALT_HOME} -ms /bin/bash -U -G root,sudo ${SALT_USER}
|
||||||
|
|||||||
Reference in New Issue
Block a user