Last active
December 11, 2017 16:53
-
-
Save danrjohnson/cbf7c71e117deb33efb6 to your computer and use it in GitHub Desktop.
SaltStack with 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
master: localhost | |
file_client: local | |
grains: | |
client: acme | |
servertype: webserver |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" | |
config.vm.box = "ubuntu/trusty32" | |
config.vm.network "public_network", :bridge => "eth0" | |
config.vm.hostname = "web1" | |
config.vm.synced_folder "/srv/sls/", "/srv/" | |
config.vm.provision :salt do |salt| | |
salt.pillar({"is_vagrant" => true}) | |
salt.minion_config = "salt/minion" | |
salt.colorize = true | |
salt.run_highstate = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment