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

Commit 2cff366

Browse files
Clayton O'Neillantoineco
authored andcommitted
Add containment for included classes
In order to allow external classes to depend on this class as a whole, we need to contain all of the classes that are included.
1 parent 6aa9148 commit 2cff366

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

manifests/init.pp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
}
128128

129129
# define download URL
130-
include oracle_java::javalist
130+
contain oracle_java::javalist
131131
if $custom_download_url == undef {
132132
$downloadurl = "http://download.oracle.com/otn-pub/java/jdk/${version_final}${oracle_java::javalist::build}/${filename}"
133133
} else {
@@ -142,16 +142,16 @@
142142
}
143143

144144
# annnnd... let's go
145-
include oracle_java::download
146-
include oracle_java::install
145+
contain oracle_java::download
146+
contain oracle_java::install
147147
Class['oracle_java::download'] ~> Class['oracle_java::install']
148148

149149
if $add_alternative {
150-
include oracle_java::alternative
150+
contain oracle_java::alternative
151151
Class['oracle_java::install'] -> Class['oracle_java::alternative']
152152
}
153153

154154
if $add_system_env {
155-
include oracle_java::env
155+
contain oracle_java::env
156156
}
157157
}

0 commit comments

Comments
 (0)