This project is to be used as a base project when developing Salt projects using the Vagrant tool for development and testing purposes.
It contains a base Vagrantfile
that configures two virtual machines:
- A Salt Master that contains a file server of salt states. FQDN is 'master.example.com'
- A Salt Minion that is automatically configured on startup. FQDN is 'minion.example.com'
Salt master has security authentication turned off as this is a development environment.
Each virtual machine will on startup run the command salt-call state.highstate
to configure the node as necessary from the Salt State file found in directory srv/salt
.
There is an example that configures an apache server changing the default index.html
file like the tutorial found from http://saltstack.org.
In order to use this project, you must have a Vagrant basebox with Salt and ZeroMQ pre-installed. I have an Ubuntu Oneiric 11.10 base box that you can download here: http://dl.dropbox.com/u/3256948/oneiric-salt096.box that you can import into your Vagrant environment.
If you want to build your own, then you need to use Veewee. I have a couple of templates which can be found here:
- Ubuntu 11.10 32-bit: Sets up Ubuntu Oneiric 32-bit with ZeroMQ 2.1.1 and Salt 0.9.6
- Ubuntu 11.10 64-bit: Sets up Ubuntu Oneiric 64-bit with ZeroMQ 2.1.1 and Salt 0.9.6
Currently only tested with Ubuntu 11.10 32-bit