Skip to content

Commit

Permalink
Vagrant/Berkshelf configs added
Browse files Browse the repository at this point in the history
  • Loading branch information
mdxp committed Feb 10, 2013
1 parent cc830fc commit 096197f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
/cookbooks
3 changes: 3 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
site :opscode

metadata
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source :rubygems

gem 'berkshelf'
gem 'vagrant', '~> 1.0.5'
35 changes: 35 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 096197f

Please sign in to comment.