Skip to content

salt-formulas/docker-salt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SaltStack Docker Image

Docker images to run SaltStack with Reclass as pillar backend as Docker container.

Build

docker build -t salt-master -f salt-master.Dockerfile --build-args version=latest .

Run

First create directories on your host and set permissions:

mkdir -p /srv/salt/reclass /srv/salt/env /srv/salt/pki/master/minions
chown 999:999 /srv/salt/pki

Run salt-master manually:

docker run -d -v /srv/salt/pki:/etc/salt/pki -v /srv/salt:/srv/salt salt-master

Or use docker-compose:

docker-compose up -d

Configuration

You should also get some formulas into /srv/salt/env directory and clone reclass into /srv/salt/reclass.

If you want to make some customizations (eg. on environment locations, add new volume as /etc/salt/master.d/env.conf or /etc/salt/master.d to replace custom configuration completely.

Releases

No releases published

Packages

No packages published