1. Quinton Anderson
  2. vagrant-storm-cluster

Commits

Quinton Anderson  committed 8a41bb0

final tweeks to the provisioning after doing actual cluster testing

  • Participants
  • Parent commits 9f8d055
  • Branches master

Comments (0)

Files changed (4)

File Vagrantfile

View file
 boxes = [
   { :name => :nimbus, :ip => '192.168.33.100', :cpus =>2, :memory => 512 },
   { :name => :supervisor1, :ip => '192.168.33.101', :cpus =>4, :memory => 1024 },
-  { :name => :supervisor2, :ip => '192.168.33.102', :cpus =>4, :memory => 1024 }
+  { :name => :supervisor2, :ip => '192.168.33.102', :cpus =>4, :memory => 1024 },
+  { :name => :zookeeper1, :ip => '192.168.33.201', :cpus =>1, :memory => 512 }
 ]
 
 Vagrant::Config.run do |config|
 	  config.vm.box_url = "http://dl.dropbox.com/u/1537815/precise64.box"
 	  
       config.vm.network :hostonly, opts[:ip]
-      config.vm.host_name = "storm.%s" % opts[:name].to_s
+      config.vm.host_name = "storm.%s" % opts[:name].to_s			
       
       config.vm.share_folder "v-data", "/vagrant_data", "./data", :transient => false
       
       config.vm.customize ["modifyvm", :id, "--memory", opts[:memory]]
       config.vm.customize ["modifyvm", :id, "--cpus", opts[:cpus] ] if opts[:cpus]
       
+      config.vm.provision :shell, :inline => "cp -fv /vagrant_data/hosts /etc/hosts"
+      
       config.vm.provision :shell, :inline => "apt-get update"
       
       if File.exist?("./data/jdk-6u35-linux-x64.bin") then

File data/hiera.yaml

View file
+---
+:hierarchy:
+    - %{operatingsystem}
+    - storm
+:backends:
+    - yaml
+:yaml:
+    :datadir: '/etc/puppet/hieradata'

File data/hosts

View file
+127.0.0.1       localhost
+192.168.33.100  storm.nimbus
+192.168.33.101  storm.supervisor1
+192.168.33.102  storm.supervisor2
+192.168.33.103  storm.supervisor3
+192.168.33.104  storm.supervisor4
+192.168.33.105  storm.supervisor5
+192.168.33.201  storm.zookeeper1
+192.168.33.202  storm.zookeeper2
+192.168.33.203  storm.zookeeper3
+192.168.33.204  storm.zookeeper4

File manifests/provisioningInit.pp

View file
 package {puppet:ensure=> [latest,installed]}
 package {ruby:ensure=> [latest,installed]}
 package {rubygems:ensure=> [latest,installed]}
+package {unzip:ensure=> [latest,installed]}
 
 exec { "install_hiera":
 	command => "gem install hiera hiera-puppet",