The slides of the Salt introduction meetup.
http://www.meetup.com/middleware/events/166872152/
http://www.meetup.com/SaltStack-User-Group-The-Netherlands/events/171114002/
11. SETUPMASTER-MINIONS / PART1
EXERCISE#1
1. vagrant up master
2. vagrant ssh master
3. (Master) sudo su -
4. (Master) service salt-master start
5. (Master) salt-key -L
6. (Master) service salt-minion start
7. (Master) salt-key -L
8. (Master) salt-key -a master
9. (Master) salt-key -L
# Start the master
# SSH into the master VM
# Change to the root user
# Start the Salt master
# List keys
# Start the Salt minion
# List keys
# Sign the key
# List keys
(Master)-Executeonthemaster / (Minion)-Executeontheminion
12. SETUPMASTER-MINIONS / PART2
EXERCISE#1
1. Open a new terminal windows
2. vagrant up minion
3. vagrant ssh minion
4. (Minion) sudo su -
5. (Minion) service salt-minion start
6. (Master) salt-key -L
7. (Master) salt-key -a minion
8. (Master) salt-key -L
# SSH into the minion VM
# Change to the root user
# Start the Salt minion
# List keys
# Sign the key
# List keys
(Master)-Executeonthemaster / (Minion)-Executeontheminion
14. REMOTEEXECUTION
EXERCISE#2
1. vagrant ssh master
2. sudo su -
3. salt * test.ping
4. salt master sys.doc
5. salt master sys.doc file
6. salt * disk.usage
7. salt * status.loadavg
8. salt * pkg.version wget
9. salt minion pkg.install lynx
# SSH into the master VM
# Change to the root user
# Ping all minions
# Output sys.doc
# Output sys.doc for file
# Return usage information
# Return load averages
# Get version of wget
# Install lynx on minion
24. BUILDATOMCATSTATE-PART#1
EXERCISE#6
1. Open file /srv/salt/states/tomcat/init.sls
2. Alternative is salt/states/tomcat/init.sls
3. Create runtime user tomcat in group tomcat
4. Apply state: salt minion state.sls tomcat
5. Validate that user and group are created
http://docs.saltstack.com/ref/states/all