feat: Upgrade SaltStack Master to 3000.2
This commit is contained in:
@@ -1,8 +1,14 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
This file only reflects the changes that are made in this image.
|
This file only reflects the changes that are made in this image.
|
||||||
Please refer to the SaltStack [Release Notes](https://docs.saltstack.com/en/latest/topics/releases/3000.1.html) for the list of changes in SaltStack.
|
Please refer to the SaltStack [Release Notes](https://docs.saltstack.com/en/latest/topics/releases/3000.2.html) for the list of changes in SaltStack.
|
||||||
|
|
||||||
|
**3000.2**
|
||||||
|
|
||||||
|
- Upgrade SaltStack Master to `3000.2`
|
||||||
|
- Upgrade `pygit2` to version `1.2.0`
|
||||||
|
- Change Docker base image to `ubuntu:bionic-20200403`
|
||||||
|
-
|
||||||
**3000.1**
|
**3000.1**
|
||||||
|
|
||||||
- Upgrade SaltStack Master to `3000.1`
|
- Upgrade SaltStack Master to `3000.1`
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ ARG BUILD_DATE
|
|||||||
ARG VCS_REF
|
ARG VCS_REF
|
||||||
|
|
||||||
# https://github.com/saltstack/salt/releases
|
# https://github.com/saltstack/salt/releases
|
||||||
ENV SALT_VERSION="3000.1" \
|
ENV SALT_VERSION="3000.2" \
|
||||||
PYTHON_VERSION="3.6" \
|
PYTHON_VERSION="3.6" \
|
||||||
LIBSSH2_VERSION="1.9.0" \
|
LIBSSH2_VERSION="1.9.0" \
|
||||||
LIBGIT2_VERSION="1.0.0" \
|
LIBGIT2_VERSION="1.0.0" \
|
||||||
|
|||||||
18
README.md
18
README.md
@@ -1,4 +1,4 @@
|
|||||||
# SaltStack Master v3000.1
|
# SaltStack Master v3000.2
|
||||||
|
|
||||||
Dockerfile to build a [SaltStack](https://www.saltstack.com) Master image for the Docker opensource container platform.
|
Dockerfile to build a [SaltStack](https://www.saltstack.com) Master image for the Docker opensource container platform.
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ For other methods to install SaltStack please refer to the [Official SaltStack I
|
|||||||
Automated builds of the image are available on [Dockerhub](https://hub.docker.com/r/cdalvaro/saltstack-master/) and is the recommended method of installation.
|
Automated builds of the image are available on [Dockerhub](https://hub.docker.com/r/cdalvaro/saltstack-master/) and is the recommended method of installation.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker pull cdalvaro/saltstack-master:3000.1
|
docker pull cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also pull the latest tag which is built from the repository `HEAD`
|
You can also pull the latest tag which is built from the repository `HEAD`
|
||||||
@@ -73,7 +73,7 @@ docker run --name salt_master --detach \
|
|||||||
--env 'SALT_LOG_LEVEL=info' \
|
--env 'SALT_LOG_LEVEL=info' \
|
||||||
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
cdalvaro/saltstack-master:3000.1
|
cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
@@ -97,7 +97,7 @@ docker run --name salt_master -d \
|
|||||||
--env 'SALT_LOG_LEVEL=info' \
|
--env 'SALT_LOG_LEVEL=info' \
|
||||||
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
cdalvaro/saltstack-master:3000.1
|
cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Master Signed Keys
|
### Master Signed Keys
|
||||||
@@ -111,7 +111,7 @@ docker run --name salt_stack --detach \
|
|||||||
--env 'SALT_MASTER_SIGN_PUBKEY=True'
|
--env 'SALT_MASTER_SIGN_PUBKEY=True'
|
||||||
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
cdalvaro/saltstack-master:3000.1
|
cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
The container will create the `master_sign` key and its signature. More information about how to configure the minion service can be found [here](https://docs.saltstack.com/en/latest/topics/tutorials/multimaster_pki.html#prepping-the-minion-to-verify-received-public-keys).
|
The container will create the `master_sign` key and its signature. More information about how to configure the minion service can be found [here](https://docs.saltstack.com/en/latest/topics/tutorials/multimaster_pki.html#prepping-the-minion-to-verify-received-public-keys).
|
||||||
@@ -121,7 +121,7 @@ Additionally, you can generate new keys by executing the following command:
|
|||||||
```sh
|
```sh
|
||||||
docker run --name salt_stack -it --rm \
|
docker run --name salt_stack -it --rm \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
cdalvaro/saltstack-master:3000 app:gen-signed-keys other_master_sign
|
cdalvaro/saltstack-master:3000.2 app:gen-signed-keys other_master_sign
|
||||||
```
|
```
|
||||||
|
|
||||||
The newly created keys will appear inside `keys/generated/other_master_sign` directory.
|
The newly created keys will appear inside `keys/generated/other_master_sign` directory.
|
||||||
@@ -137,7 +137,7 @@ docker run --name salt_stack -it --rm \
|
|||||||
--env "USERMAP_UID=$(id -u)" --env "USERMAP_GID=$(id -g)" \
|
--env "USERMAP_UID=$(id -u)" --env "USERMAP_GID=$(id -g)" \
|
||||||
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
cdalvaro/saltstack-master:3000.1
|
cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Git Fileserver
|
### Git Fileserver
|
||||||
@@ -193,7 +193,7 @@ docker run --name salt_master --detach \
|
|||||||
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
--volume $(pwd)/logs/:/home/salt/data/logs/ \
|
--volume $(pwd)/logs/:/home/salt/data/logs/ \
|
||||||
cdalvaro/saltstack-master:3000.1
|
cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
Check [Available Configuration Parameters](#available-configuration-parameters) section for configuring logrotate.
|
Check [Available Configuration Parameters](#available-configuration-parameters) section for configuring logrotate.
|
||||||
@@ -239,7 +239,7 @@ docker run --name salt_master -d \
|
|||||||
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
--volume $(pwd)/roots/:/home/salt/data/srv/ \
|
||||||
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
--volume $(pwd)/keys/:/home/salt/data/keys/ \
|
||||||
--volume $(pwd)/config/:/home/salt/data/config/ \
|
--volume $(pwd)/config/:/home/salt/data/config/ \
|
||||||
cdalvaro/saltstack-master:3000.1
|
cdalvaro/saltstack-master:3000.2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
master:
|
master:
|
||||||
container_name: salt_master
|
container_name: salt_master
|
||||||
image: cdalvaro/saltstack-master:3000.1
|
image: cdalvaro/saltstack-master:3000.2
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- "roots/:/home/salt/data/srv"
|
- "roots/:/home/salt/data/srv"
|
||||||
|
|||||||
Reference in New Issue
Block a user