Commits

Nicola Paolucci committed d05dba5

Split java 7 install into separate task

  • Participants
  • Parent commits 3d14788
  • Branches stash

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

File 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 {