Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Last active December 14, 2015 21:28
Show Gist options
  • Save imsickofmaps/3aca802406e6bc4ba278 to your computer and use it in GitHub Desktop.
Save imsickofmaps/3aca802406e6bc4ba278 to your computer and use it in GitHub Desktop.
Example Vagrantfile for vumi-go
Vagrant::Config.run do |config|
config.vm.box = "precise64"
# Port forwarding
## Web interface mapping
config.vm.forward_port 8000, 8000
## shares
# change ../code/vumi-go to whereever your clone of vumi-go is locatated
config.vm.share_folder "vumi-go", "/srv/vumi-go", "../code/vumi-go"
# Enable and configure the chef solo provisioner
config.vm.provision :chef_solo do |chef|
# chef.log_level = "debug"
# Tell chef where to find his cookbooks
chef.cookbooks_path = "env/cookbooks"
# Tell chef where to find his data bags
chef.data_bags_path = "env/data_bags"
# Tell chef where to find the roles path - will be expanded relative to the project directory
chef.roles_path = "env/roles"
# We use roles for recipe sets
chef.add_role("vumi-go")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment