Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 54e5b95

Browse files
committed
relocate 'archive' module depency
1 parent 3a6023b commit 54e5b95

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

manifests/download.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
fail('You must include the oracle_java base class before using any oracle_java sub class')
99
}
1010

11+
# dependency
12+
if !defined(Class['archive']) {
13+
include archive
14+
}
15+
1116
# make sure install/download directory exists
1217
file { '/usr/java':
1318
ensure => directory,

manifests/install.pp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
fail('You must include the oracle_java base class before using any oracle_java sub class')
99
}
1010

11-
# dependency
12-
if !defined(Class['archive']) {
13-
include archive
14-
}
15-
1611
case $oracle_java::format_real {
1712
'rpm' : { contain oracle_java::install::rpm }
1813
default : { contain oracle_java::install::targz }

manifests/install/targz.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
fail('You must include the oracle_java base class before using any oracle_java sub class')
99
}
1010

11+
# dependency
12+
if !defined(Class['archive']) {
13+
include archive
14+
}
15+
1116
# extract archive
1217
archive { 'extract java archive':
1318
path => "/usr/java/${oracle_java::filename}",

0 commit comments

Comments
 (0)