Skip to content

JasonSwindle/mom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SaltStack MOM (Master of Masters)

image

SaltStack Master of Masters (MOM) inside of Docker. This is being heavily worked on, so here be dragons!

Status

Status: Pre-Production

How it was built

  • The docker image phusion/baseimage and the tag of 0.9.10.
  • The password to root is changeme... CHANGE THIS ASAP!, you have been warned!
  • The SSH port is 9001, to make it live with the host machaine's port 22.
  • The Private Keys from SaltStack are stored on the host in /root/.salt-pki/mom via Docker's Read/Write volume.
  • The logs from MOM are storage on the host in /var/log/docker/mom as Read/Write in the container.
  • /srv on the host is mounted in /srv as Read/Write in the container.
  • /opt/tools on the host is mounted in /usr/bin/tools/ as Read-Only in the container.
  • Don't forget to change your timezone, unless you want US Central time.

How to deploy MOM

Clone down

git clone https://github.com/jasonswindle/mom

Change directory into project

cd mom/

Build MOM

docker build --rm --tag='mom-image' .

Run MOM

docker run \
    --volume=/var/log/docker/mom:/var/log:rw \
    --volume=/root/.salt-pki/mom:/etc/salt/pki:rw \
    --volume=/srv:/srv:rw \
    --volume=/opt/tools:/usr/bin/tools:ro \
    --publish=4505:4505 \
    --publish=4506:4506 \
    --publish=9001:9001 \
    --hostname="mom" \
    --name="mom-container" \
    --detach=true \
    mom-image:latest

To-Do

  • Clean up Dockerfile; more logic less layers.
  • Tighten up the RUNIT config files.
  • Fill out the README.md more.
  • Test heavily.
  • Replace Mom image with image I have the copyright to.
  • Check into index.docker.io ?
  • Add docs for upstart.
  • Add rsync_user for Master PKI key sync-ing

About

SaltStack MOM (Master of Masters) in Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages