This repository was archived by the owner on Dec 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 5
5
fail(' You must include the oracle_java base class before using any oracle_java sub class' )
6
6
}
7
7
8
- include ::archive
8
+ if !defined (Class[' archive' ]) {
9
+ include archive
10
+ }
9
11
10
- $require_extraction = $oracle_java::type ? {
12
+ $require_extraction = $oracle_java::format ? {
11
13
' tar.gz' => true ,
12
14
default => false
13
15
}
28
30
extract => $require_extraction ,
29
31
extract_path => ' /usr/java' ,
30
32
creates => " /usr/java/${oracle_java::longversion} " ,
31
- cleanup => true ,
33
+ cleanup => true
32
34
}
33
35
}
Original file line number Diff line number Diff line change 190
190
191
191
include oracle_java::download
192
192
include oracle_java::install
193
+ Class[' oracle_java::download' ] -> Class[' oracle_java::install' ]
193
194
}
Original file line number Diff line number Diff line change 17
17
package { $oracle_java::packagename :
18
18
ensure => latest,
19
19
source => " /usr/java/${oracle_java::filename} " ,
20
- provider => rpm,
21
- require => Exec[' download java RPM' ]
20
+ provider => rpm
22
21
}
23
22
}
24
23
# the procedure is a bit more complicated for Java 6...
29
28
cwd => ' /usr/java' ,
30
29
creates => " /usr/java/${oracle_java::filename_extracted} " ,
31
30
command => " sed -ni '/exit 0/,\$ {//!p}' ${oracle_java::filename} ; chmod +x ${oracle_java::filename} ; ./${oracle_java::filename} " ,
32
- require => [ Package[' sed' ], Exec[ ' download java RPM ' ] ]
31
+ require => Package[' sed' ]
33
32
} ~>
34
33
# remove undesired extra RPMs
35
34
exec { 'cleanup java RPM' :
You can’t perform that action at this time.
0 commit comments