diff --git a/.gitignore b/.gitignore index b844b14..77cbe8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,10 @@ +.vagrant +Berksfile.lock Gemfile.lock +*~ +*# +.#* +\#*# +.*.sw[a-z] +*.un~ +/cookbooks diff --git a/Berksfile b/Berksfile new file mode 100644 index 0000000..c4bb297 --- /dev/null +++ b/Berksfile @@ -0,0 +1,3 @@ +site :opscode + +metadata diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..878eb92 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source :rubygems + +gem 'berkshelf' +gem 'vagrant', '~> 1.0.5' diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..e258acb --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,35 @@ +require 'berkshelf/vagrant' + +Vagrant::Config.run do |config| + config.vm.host_name = "icinga-berkshelf" + + config.vm.box = "opscode-ubuntu-12.04" + config.vm.box_url = "https://opscode-vm.s3.amazonaws.com/vagrant/boxes/opscode-ubuntu-12.04.box" + + config.vm.customize ["modifyvm", :id, "--memory", "512"] + + config.vm.network :hostonly, "33.33.33.11" + + config.vm.forward_port 80, 8080 + config.vm.share_folder("v-root", "/vagrant", ".") + + config.vm.provision :shell, :inline => "sudo aptitude update" + + config.ssh.max_tries = 40 + config.ssh.timeout = 120 + + config.vm.provision :chef_solo do |chef| + chef.json = { + :www_root => '/vagrant/public', + :mysql => { + :server_root_password => "rootpass", + :server_repl_password => "replpass", + :server_debian_password => "debpass" + }, + } + + chef.run_list = [ + "recipe[icinga::core_source]" + ] + end +end