java::oracle Do not download archive if already installed

We are having issues on reboot of boxes. It tries to download to tmp even though already installed, which would be fine,
but the version is no longer available.
This results in curl downloading something to tmp every time puppet runs, which eventualy fills up tmp :(
This commit is contained in:
Chris Edester
2016-11-01 12:53:29 -04:00
parent daddd9a115
commit 693d980c2b

View File

@@ -212,9 +212,10 @@ define java::oracle (
archive { $destination : archive { $destination :
ensure => present, ensure => present,
source => "${oracle_url}${release_major}-${release_minor}/${package_name}", source => "${oracle_url}${release_major}-${release_minor}/${package_name}",
cleanup => false,
extract_path => '/tmp',
cookie => 'gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie', cookie => 'gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie',
extract_path => '/tmp',
cleanup => false,
creates => $creates_path,
}-> }->
case $::kernel { case $::kernel {
'Linux' : { 'Linux' : {