Skip to content

Instantly share code, notes, and snippets.

@dwynne
Created June 24, 2013 16:46
Show Gist options
  • Save dwynne/5851542 to your computer and use it in GitHub Desktop.
Save dwynne/5851542 to your computer and use it in GitHub Desktop.
Vanilla nginx server with Berkshelf and Vagrant
cookbook 'nginx', '~> 1.7.0'
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