Skip to content

Instantly share code, notes, and snippets.

@danrjohnson
Last active December 11, 2017 16:53
Show Gist options
  • Save danrjohnson/cbf7c71e117deb33efb6 to your computer and use it in GitHub Desktop.
Save danrjohnson/cbf7c71e117deb33efb6 to your computer and use it in GitHub Desktop.
SaltStack with Vagrant
master: localhost
file_client: local
grains:
client: acme
servertype: webserver
# -*- 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