/salt-admin-student

Contains the student setup in Vagrant/Virtualbox format for the Saltstack Fundamentals of Salt Administration course

Primary LanguageShell

Student Setup of Fundamentals of Salt Administration

SaltStack Training Services

This project is to duplicate the student environment used in the SaltStack Fundamentals of Salt Administration course so that labs can be practiced after the course.

There are a couple of differences from the setup during the class. For example, the vagrant project installs the Salt master and all minions so you can skip the first lab. Also, the Salt cloud configuration is not implemented since all VMs are running local. The sdev system is running CentOS and not SUSE.

Requirements

  • VirtualBox
  • Vagrant
  • Enough resources for 5 virtual machines (~ 3GB RAM)

Instructions

  1. Install the required software listed above.

  2. Clone the project to your local system.

    git clone https://github.com/grep4linux/salt-admin-student
  3. Change to the cloned directory where the Vagrantfile is located and run:

    vagrant up

    Vagrant will build out the environment. It will take a few minutes for all systems to be built.

  4. Once the build process completes you can view the status of the virtual machines by running:

    vagrant status
    Current machine states:
    
    saltmaster                running (virtualbox)
    cweb                      running (virtualbox)
    redis                     running (virtualbox)
    uarchive                  running (virtualbox)
    sdev                      running (virtualbox)
    
    This environment represents multiple VMs. The VMs are all listed
    above with their current state. For more information about a specific
    VM, run `vagrant status NAME`.
  5. You can login to the sytems through each VirtualBox console or you can log using vagrant.

  1. To login to the saltmaster through VirtualBox then select that console and login as root with the password of vagrant.

  2. To login to the saltmaster through Vagrant then type:

    vagrant ssh saltmaster
  1. The virtual machines can be suspended by running:

    vagrant suspend
  2. The environment can be brought up again by running:

    vagrant up
  3. The entire environment can be destroyed and reset by running:

    vagrant destroy -f

Notes

Possible edits to the Vagrantfile.

  1. If you want to perform a manual installation of Salt (the default is to install it) then place a comment # infront of each line containing saltify.sh in the file.
  2. If you want a master of masters VM then duplicate the cweb section and replace cweb with mom and change the IP address to 192.168.50.105.
  3. If you don't want the VirtualBox windows opened then replace each instance of vb.gui = true to vb.gui = false in the Vagrantfile.