Nicola Paolucci avatar Nicola Paolucci committed d05dba5

Split java 7 install into separate task

Comments (0)

Files changed (2)

 Vagrant::Config.run do |config|
   config.vm.box = "base"
   config.vm.forward_port 7990, 7990
-  config.vm.provision :puppet, :module_path => "modules", :options => "--verbose --debug" do |puppet|
+  config.vm.provision :puppet, :module_path => "modules" do |puppet|
     puppet.manifests_path = "manifests"
     puppet.manifest_file  = "default.pp"
   end

manifests/default.pp

 
   exec { 'apt-get update':
     command => '/usr/bin/apt-get update',
-    require => Apt::Ppa["ppa:webupd8team/java"],
+    before => Apt::Ppa["ppa:webupd8team/java"],
+  }
+
+  exec { 'apt-get update 2':
+    command => '/usr/bin/apt-get update',
+    require => [ Apt::Ppa["ppa:webupd8team/java"], Package["git-core"] ],
   }
 
   package { ["vim",
              "tmux",
              "curl",
              "git-core",
-             "bash",
-             "oracle-java7-installer"]:
+             "bash"]:
     ensure => present,
     require => Exec["apt-get update"],
+    before => Apt::Ppa["ppa:webupd8team/java"],
+  }
+
+  package { ["oracle-java7-installer"]:
+    ensure => present,
+    require => Exec["apt-get update 2"],
   }
 
   exec {
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.