-
-
Save jcockhren/37469ab8475d35a923d3 to your computer and use it in GitHub Desktop.
Sample simple vagrant+salt setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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