Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Created October 4, 2013 18:02
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 jcockhren/37469ab8475d35a923d3 to your computer and use it in GitHub Desktop.
Save jcockhren/37469ab8475d35a923d3 to your computer and use it in GitHub Desktop.
Sample simple vagrant+salt setup
file_client: local # notice no master. It'll use the states in the provided salt directory
grains:
roles:
- webserver
- database
env: dev
user: vagrant
group: vagrant
Vagrant.configure("2") do |config|
config.vm.box = 'raring64'
config.vm.box_url = 'https://dl.dropboxusercontent.com/u/3428571/raring64.box'
config.vm.hostname = "smu.com"
config.vm.synced_folder "salt/", "/srv/salt" # Notice this difference
config.vm.provision :salt do |s|
s.minion_config = "salt/minion"
s.verbose = true
s.run_highstate = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment