Created
October 27, 2013 19:13
-
-
Save buccolo/7186660 to your computer and use it in GitHub Desktop.
This file contains 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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu-precise64" | |
config.vm.box_url = "https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box" | |
# Sets the ip we'll use to access the box | |
config.vm.network :private_network, ip: "10.0.0.10" | |
config.vm.hostname = "detroit" | |
# Configures the amount of RAM | |
config.vm.provider "virtualbox" do |box| | |
box.customize ["modifyvm", :id, "--memory", "1024"] | |
end | |
# Specifies the chef version Opsworks is running | |
config.omnibus.chef_version = "11.4.0" | |
# Chef related configs | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "../../" | |
chef.log_level = :info | |
# Sample config attribute (to be used on nginx.conf.erb) | |
chef.json = { | |
"nginx" => { | |
"worker_processes" => 1 | |
} | |
} | |
# Chef, use this recipe: | |
chef.add_recipe "detroit::default" | |
# Uses our development directory instead of deploying the app | |
config.vm.synced_folder "~/dev/detroit", "/data/www" | |
# This would deploy the app exactly the way it's done in Opsworks | |
# chef.add_recipe "detroit::deploy" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment