Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.2 KB

README.md

File metadata and controls

37 lines (25 loc) · 1.2 KB

SaltStack lab with Vagrant

This repository holds a Vagrant deploy of SaltStack. Two VMs are created, a Salt Master and a Salt Minion.

Vagrant

You need to have Vagrant and VirtualBox installed. Included Vagrantfile is a multi-box deployment using shell provisioning.

SaltStack

This deployment uses Salt preseeded keys, read more about it here.

How-To

Shell provisioning must be run twice, once to disable SELINUX (a reboot is needed, this could be temprarily done too) and once to setup SaltStack.

Complete Steps:

$ git clone https://github.com/alvaro-gh/vagrant-saltstack-lab
$ cd vagrant-saltstack-lab
$ vagrant up

# Check if reboot is done and SELINUX is disabled:
$ vagrant ssh saltmaster -c getenforce
$ vagrant ssh saltminion -c getenforce

# If SELINUX is disabled, provision again:
$ vagrant up --provision

# Once provisioning is complete, enter Salt Master
$ vagrant ssh saltmaster

# Inside VM
$ sudo salt '*' test.ping
saltminion:
    True