Created
June 24, 2013 16:46
-
-
Save dwynne/5851542 to your computer and use it in GitHub Desktop.
Vanilla nginx server with Berkshelf and Vagrant
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
cookbook 'nginx', '~> 1.7.0' |
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.define :web do |web| | |
web.vm.box = "precise64" | |
web.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
web.vm.network :private_network, ip: "192.168.60.10" | |
web.berkshelf.enabled = true | |
web.vm.provision :shell, :inline => "gem install chef --version 11.4.2 --no-rdoc --no-ri --conservative" | |
web.vm.provision :chef_solo do |chef| | |
chef.add_recipe "apt" | |
chef.add_recipe "nginx" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment