Created
May 31, 2013 20:59
-
-
Save tag-dmasse/5687953 to your computer and use it in GitHub Desktop.
Sample vagrant configuration with sample chef recipe for a custom app.
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
include_recipe "apache2" | |
web_app "example.com" do | |
allow_override "All" | |
docroot "/vagrant/" | |
server_aliases ["www.example.com"] | |
server_name "example.com" | |
end |
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| | |
config.vm.box = "raring" | |
config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--cpus", "1"] | |
end | |
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true | |
config.vm.provision :shell, :inline => "sudo echo '`cat /etc/timezone`' > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata > /dev/null 2>&1" | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks" | |
chef.add_recipe "apache2" | |
chef.add_recipe "myapp" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment