Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.