1. Quinton Anderson
  2. vagrant-storm-cluster

Commits

Quinton Anderson  committed 9f8d055

Provisining verified, getting some issues with the resulting nimbus instance...

  • Participants
  • Parent commits 67f0642
  • Branches master

Comments (0)

Files changed (3)

File Vagrantfile

View file
 # vi: set ft=ruby :
 
 boxes = [
-  { :name => :nimbus, :ip => '192.168.33.100', :cpus =>1, :memory => 512 },
+  { :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 }
 ]

File manifests/jdk.pp

View file
 exec { "installJdk":
 	command => "installJdk.sh",
     path => "/vagrant/scripts",
+    logoutput => true, 
     creates => "/opt/jdk${JDK_VERSION}",
 }
 

File scripts/installJdk.sh

View file
 #!/bin/sh
 echo "Installing JDK!"
 
-chmod 777 /vagrant_data/jdk-6u35-linux-x64.bin
+chmod 775 /vagrant_data/jdk-6u35-linux-x64.bin
 
+cd /root
 yes | /vagrant_data/jdk-6u35-linux-x64.bin
 
-mv jdk1.6.0_35 /opt
+/bin/mv /root/jdk1.6.0_35 /opt
 
-ln -s /opt/jdk1.6.0_35/bin/java /usr/bin
-ln -s /opt/jdk1.6.0_35/bin/java /usr/bin
+/bin/rm -rv /usr/bin/java
+/bin/rm -rv /usr/bin/javac
+
+/bin/ln -s /opt/jdk1.6.0_35/bin/java /usr/bin
+/bin/ln -s /opt/jdk1.6.0_35/bin/javac /usr/bin
 JAVA_HOME=/opt/jdk1.6.0_35
 export JAVA_HOME
 PATH=$PATH:$JAVA_HOME/bin