Created
September 19, 2014 16:52
-
-
Save kevb10/425e8462ba685a68b9c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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