Fix ordering issues with composed classes

The top level java module was declaring classes depending on what Java
distribution is required.  Similar to the issues encountered with
service and configuration class ordering, the composed classes did not
have an established relationship with other things that require the
module.

This change brings all resources into a single top level java class and
eliminates class composition within the module entirely.
This commit is contained in:
Jeff McCune
2011-06-02 17:37:19 -07:00
parent cc1dd231e3
commit c503afd73e
3 changed files with 3 additions and 66 deletions

View File

@@ -25,17 +25,9 @@ class java(
$version_real = $version
$distribution_real = $distribution
case $distribution_real {
jre: {
class { 'java::jre_package':
version => $version_real,
}
}
jdk: {
class { 'java::jdk_package':
version => $version_real,
}
}
package { 'java':
ensure => $version_real,
name => "${distribution_real}",
}
}