Skip to content

Personal Saltstack lab environment in Docker (Centos7 containers)

License

Notifications You must be signed in to change notification settings

rnowotniak/saltlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

saltlab

Personal Saltstack lab environment in Docker (Centos7 containers)

Contact: Robert Nowotniak rnowotniak@gmail.com

Tested on ArchLinux as the Docker host.

Quick start

git clone https://github.com/rnowotniak/saltlab
docker pull rnowotniak/saltlab

cd saltlab
docker-compose up

docker-compuse up output

Enter the Salt master container, accept all minions keys:

docker exec -it salt1 bash -l
salt-key
salt-key -A -y

salt-key output

Run some tests from Salt master to the minions:

salt '*' test.ping

salt test.ping output

Change number of minions dynamically:

docker-compose up --scale minions=6

Some useful commands:

docker pull centos:centos7
docker run -it --rm centos:centos7

yum install salt-master
yum install salt-minion

vi /etc/salt/minion  (update master: hostname)

/usr/bin/salt-master -d
/usr/bin/salt-minion -d -l info

tail /var/log/salt/{master,minion}

salt-key
salt-key -A


docker build -t rnowotniak/saltlab .
docker run --name salt1 --rm rnowotniak/saltlab

docker-compose
up  ( -d )
scale minions=3
logs master
ps
restart minions
run
stop

Some useful links:

About

Personal Saltstack lab environment in Docker (Centos7 containers)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages