This repository contains the example Salt-configured Vagrant VM that I used in a demo at Montreal Python 36 in April 2013. It includes examples of package installation, file management, service management and configuration file watching, and virtualenv management.
You can follow the construction of the demo through the following tags:
- 0: add basic Vagrantfile
- 1: add basic salt provisioning
- 2: add python packages
- 3: add helloworld app with flask & circus
NB Don't deploy your important Hello World applications via your configuration management system as in the final step. Set up the infrastructure, but deploy with an appropriate tool. This was just an example!
You'll need Vagrant and the vagrant-salt
plugin installed. To
install Vagrant, follow the instructions on the website or
use your OS package manager. Once you have it installed, vagrant-salt
is
installed with
$ vagrant plugin install vagrant-salt
After that, you can run vagrant up
or vagrant provision
at each step along
the demo.
For more information, check out the Vagrant documentation and Salt documentation