On Github foodtaster / dev-highload-2013
Created by foodtaster hospital-systems/waveaccess 2013 dev {highload} 2013
@ choice-hospital-systems/waveaccess
Vagrant::Config.run do |config| config.vm.box = "precise64" config.vm.network :private_network, ip: ip config.vm.provision :chef_solo do |chef| chef.cookbooks_path = ["cookbooks", "site-cookbooks"] chef.add_recipe "pg" chef.json = { :users => ['testuser'] } chef.log_level = :debug end end
describe "nginx::default" do run_chef_on :vm0 do |c| c.json = {} c.add_recipe 'nginx' end it "should install nginx as a daemon" do vm0.should have_package 'nginx' vm0.should have_user('www-data') .in_group('www-data') vm0.should have_running_process('nginx') vm0.should listen_port(80) end end