Public | Automated Build

Last pushed: 3 days ago
Short Description
saltstack master preinstalled on ubuntu image
Full Description

Saltstack Salt-Master on Ubuntu 14.04

A Docker image which allows you to run salt-master service.

Running the Container

You can easily run the container like so:

docker run --rm -it greendwin/salt-master

Volumes

There are several volumes:

  • /srv/salt - your states, pillars etc.
  • /etc/salt/master.d - master configuration
  • /etc/salt/pki - salt-minion authentication keys
  • /var/log/salt - salts log directory
  • /var/cache/salt - job and minion data cache

Sharing Local Folders

To share folders on your local system so you can have your own master
configuration, states, pillars etc use:

docker run -d                                \
    -v /path/to/salt/conf:/etc/salt/master.d \
    -v /path/to/salt/roots:/srv/salt         \
    -v salt-master-logs:/var/log/salt        \
    -v salt-master-cache:/var/salt/cache     \
    -v salt-master-pki:/etc/salt/pki         \
    --name salt-master                       \
    greendwin/salt-master

Ports

The following ports are exposed:

  • 4505
  • 4506

Running Salt Commands

Once installed run:

$ CONTAINER_ID=$(docker run -d greendwin/salt-master)
$ docker exec -it $CONTAINER_ID bash
$ root@CONTAINER_ID:~# salt-key -L
$ root@CONTAINER_ID:~# salt '*' test.ping
$ root@CONTAINER_ID:~# salt '*' grains.items
Docker Pull Command
Owner
greendwin
Source Repository

Comments (0)