Have you ever wanted to have a Vagrant workspace with more than one Virtual Machine, and managed by Salt Stack? I did, but the documentation is not all there yet.
I managed to make it work with the following, hope it will be useful.
See the Complete salty-vagrant setup, but use the current Vagrantfile
to have two machines.
Set the following files in your workspace, at the root of your web development project.
projectDir/Vagrantfile
: TheVagrantfile
from this gistprojectDir/salt/key
: A fewpem
andpub
filesprojectDir/salt/roots
: Checkout a few salt states as neededprojectDir/master
: Salt master config, generally default doprojectDir/minion
: Salt minion config, if master is calledsalt
, no need to edit.
Thanks for the very handy example. Is config.accept_keys = true still valid? I've just tried a similar approach without it and the minions keys had already been accepted by virtue of the seed_master directive.