Skip to content

Instantly share code, notes, and snippets.

@kevb10
Created September 19, 2014 16:52
Show Gist options
  • Save kevb10/425e8462ba685a68b9c5 to your computer and use it in GitHub Desktop.
Save kevb10/425e8462ba685a68b9c5 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
## Choose your base box
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
# Modify the line below to map to the root of your project folder.
config.vm.synced_folder “../projects”, “/home/webteam-vm/webdev”
config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.network "forwarded_port", guest: 9200, host: 9200
config.ssh.forward_agent = true
## For masterless, mount your file roots file root
config.vm.synced_folder "salt/roots/", "/srv/"
config.vm.host_name = 'ome-python-dev'
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
end
## Set your salt configs here
config.vm.provision :salt do |salt|
## Minion config is set to ``file_client: local`` for masterless
salt.minion_config = "salt/minion"
## Installs our example formula in "salt/roots/salt"
salt.run_highstate = true
salt.verbose = true
# Setup Gitconfig Info
salt.pillar({
"gitconfig" => {
"name" => “Kevin Manase”,
"email" => “[email protected]
}
})
salt.pillar({
"user" => {
"code_directory" => "/home/webteam-vm/projects”
}
})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment