ixdotai/saltmaster
Extension of saltstack/salt:latest with built-in support for gitfs and gpg
50K+
This image started as an extenstion of the (now archived) project /saltstack/open/saltdocker.
/etc/salt/sshkeys/saltmaster
/etc/salt/gpgkeys
Note: If you don't supply the SSH private key or the GPG homedir, they will be automatically generated
SSH Keys:
docker volume create sshkeys
docker run --rm --volume sshkeys:/etc/salt/sshkeys registry.gitlab.com/ix.ai/saltmaster gen-ssh.sh
GPG Keyring:
docker volume create gpgkeys
docker run --rm --volume gpgkeys:/etc/salt/gpgkeys registry.gitlab.com/ix.ai/saltmaster gen-gpg.sh
docker run --rm \
--volume sshkeys:/etc/salt/sshkeys \
--volume gpgkeys:/etc/salt/gpgkeys \
--volume cache:/var/cache/salt \
--volume pki:/etc/salt/pki \
-p 4505:4505 \
-p 4506:4506 \
registry.gitlab.com/ix.ai/saltmaster:latest
Inherited from the original project, the Salt image uses several environment variables which are easy to miss. While none of the variables are required, they may significantly aid you in using the image.
SALT_MASTER_CONFIG
A JSON object. This variable is dumped to /etc/salt/master.d/master.conf and can be used to provide extra config for the salt master.
SALT_API_CONFIG
A JSON object. This variable is dumped to /etc/salt/master.d/api.conf, and defaults to the following.
rest_cherrypy:
port: 8000,
ssl_crt: /etc/pki/tls/certs/localhost.crt
ssl_key: /etc/pki/tls/certs/localhost.key
external_auth:
sharedsecret:
salt: ['.*', '@wheel', '@jobs', '@runner']
sharedsecret: $SALT_SHARED_SECRET
SALT_SHARED_SECRET
If this environment variable is set, it will set the sharedsecret variable for using the salt-api with the salt user.
registry.gitlab.com/ix.ai/saltmaster:dev-master
is the latest build on the master
branchregistry.gitlab.com/ix.ai/saltmaster:latest
is the latest build on a git tagWarning: The build on the master brancch always installs the latestpypi salt version at the time of the pipeline run!
Starting with 3005.1
, this image is multi-arch, supporting:
docker pull ixdotai/saltmaster