Quinton Anderson avatar Quinton Anderson committed 9f8d055

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

Comments (0)

Files changed (3)

 # 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 }
 ]
 exec { "installJdk":
 	command => "installJdk.sh",
     path => "/vagrant/scripts",
+    logoutput => true, 
     creates => "/opt/jdk${JDK_VERSION}",
 }
 

scripts/installJdk.sh

 #!/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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.