double-z
5/15/2013 - 2:59 AM

Berksfile

Vagrant.configure("2") do |config|
  config.berkshelf.enabled = true
  config.omnibus.version = '11.4.2'

  config.vm.box       = 'opscode-ubuntu-12.04_chef-10.18.2'
  config.vm.box_url   = 'https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-10.18.2.box'

  config.vm.provider "virtualbox" do |v|
    v.customize [ "modifyvm", :id, "--memory", 1024]
    v.customize [ "modifyvm", :id, "--cpus", 2 ]
    v.name = "sensu-berkshelf"
  end

  config.vm.network :public_network

  config.ssh.max_tries = 40
  config.ssh.timeout   = 120

  config.vm.provision :chef_solo do |chef|
    chef.log_level = 'debug'
    chef.data_bags_path = 'examples/data_bags'
    chef.json = {
      :sensu => {
        :use_embedded_runit => true,
        :use_unstable_repo => true,
        :version => '0.9.13.beta-1'
      }
    }

    chef.run_list = [
      "recipe[monitor::master]"
    ]
  end
end
site :opscode

metadata
cookbook 'redis',
  git: 'git://github.com/miah/chef-redis.git'
cookbook 'monitor',
  git: 'git://github.com/portertech/chef-monitor.git'