Last active
December 14, 2015 09:09
-
-
Save misheska/5063291 to your computer and use it in GitHub Desktop.
Revised Vagrantfile for sensu-chef/examples
This file contains 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
#require 'berkshelf/vagrant' | |
Vagrant::Config.run do |config| | |
config.vm.box = "ubuntu-1204-i386" | |
config.vm.box_url = "http://vagrant.sensuapp.org/ubuntu-1204-i386.box" | |
config.vm.customize [ | |
"modifyvm", :id, | |
"--name", "Sensu Stack", | |
"--memory", "1024" | |
] | |
config.vm.provision :shell, :inline => "apt-get install -y curl" | |
config.vm.provision :shell, :inline => "curl -L https://www.opscode.com/chef/install.sh | bash" | |
config.vm.forward_port 8080, 8080 | |
config.vm.forward_port 9000, 9000 | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = "cookbooks" | |
chef.data_bags_path = "data_bags" | |
chef.add_recipe "monitor::master" | |
chef.add_recipe "monitor::redis" | |
chef.add_recipe "monitor::rabbitmq" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment