Skip to content

Instantly share code, notes, and snippets.

@devdave
Last active December 27, 2015 15:39
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 devdave/e8c02d8db77012e025f8 to your computer and use it in GitHub Desktop.
Save devdave/e8c02d8db77012e025f8 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.box = 'raring64'
config.vm.box_url = 'https://dl.dropboxusercontent.com/u/3428571/raring64.box'
config.vm.hostname = "pytell.local"
config.vm.synced_folder "salt/", "/srv/salt" # Notice this difference
$saltInstallScript = <<SCRIPT
mkdir -p ~/tmp
cd ~/tmp
wget -O salt-bootstrap.sh http://bootstrap.saltstack.org
sudo apt-get install python-software-properties -y
sudo sh salt-bootstrap.sh -P
SCRIPT
config.vm.provision :shell, :inline => $saltInstallScript, :args => ""
config.vm.provision :salt do |s|
s.minion_config = "salt/minion"
s.verbose = true
s.run_highstate = true
s.bootstrap_options = "-P"
end
end
@number5
Copy link

number5 commented Nov 7, 2013

Try changing line 20 to:

config.vm.provision "salt" do |s|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment