Skip to content

Instantly share code, notes, and snippets.

@keeth
Created Feb 10, 2015
Embed
What would you like to do?
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "salt"
config.vm.synced_folder "./salt", "/srv/salt", id: "vagrant-root"
config.vm.synced_folder "./pillar", "/srv/pillar/base"
config.vm.synced_folder "../secrets/pillar", "/srv/pillar/secrets"
config.vm.synced_folder "../formulas", "/srv/formulas"
config.ssh.forward_agent = true
# Set up salt-master and minion
config.vm.provision :salt do |salt|
salt.verbose = true
salt.minion_config = 'vagrant/minion.conf'
salt.run_highstate = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment