Skip to content

Instantly share code, notes, and snippets.

@keeth
Created February 10, 2015 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeth/1f9912b5d54b77e150e8 to your computer and use it in GitHub Desktop.
Save keeth/1f9912b5d54b77e150e8 to your computer and use it in GitHub Desktop.
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