Skip to content

Instantly share code, notes, and snippets.

@PatOShea
Created July 4, 2015 21:45
Show Gist options
  • Save PatOShea/2277e82dcecfb274d87b to your computer and use it in GitHub Desktop.
Save PatOShea/2277e82dcecfb274d87b to your computer and use it in GitHub Desktop.
Basic Salt Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "PatOShea/win2012R2-salt"
config.vm.hostname = "win2012R2-salt"
config.vm.guest = "windows"
# This important for salt provisioner. It's used in the provisioner code extensively
config.vm.communicator = "winrm"
# Varies based on your local system
config.vm.synced_folder "../../PatOShea", "/vagrant-salt"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "2048"
end
# Use all the defaults:
config.vm.provision :salt do |salt|
# Gives more output, such as from the bootstrap script
salt.verbose = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment