Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
92bd03eec3 | ||
|
|
3e989f3c04 | ||
|
|
c790b0b955 | ||
|
|
50ca60cbee | ||
|
|
830bb07990 | ||
|
|
abad30de06 | ||
|
|
7224baa72d | ||
|
|
3c41c8ae8b | ||
|
|
5f60d5e2c0 | ||
|
|
d1d1ec2327 | ||
|
|
5ad98b17be | ||
|
|
a04e88d658 |
@@ -1,49 +1,59 @@
|
||||
2014-08-25 - Supported Version 1.1.2
|
||||
##2014-11-11 - Supported Version 1.2.0
|
||||
|
||||
Summary: This release begins the support coverage of the puppetlabs-java
|
||||
module.
|
||||
###Summary:
|
||||
This release adds SLES 12 support and is tested for Future Parser Support
|
||||
|
||||
Bugfixes:
|
||||
####Bugfixes:
|
||||
- Several readme updates
|
||||
- Testcase flexability increased
|
||||
|
||||
####Features:
|
||||
- Add SLES 12 support
|
||||
- Future Parser tested
|
||||
- Validated against PE 3.7
|
||||
|
||||
##2014-08-25 - Supported Version 1.1.2
|
||||
|
||||
###Summary:
|
||||
This release begins the support coverage of the puppetlabs-java module.
|
||||
|
||||
###Bugfixes:
|
||||
- Update java alternative values from deprecated names
|
||||
- Readme updated
|
||||
- Testing updated
|
||||
|
||||
2014-05-02 - Version 1.1.1
|
||||
##2014-05-02 - Version 1.1.1
|
||||
|
||||
Summary:
|
||||
###Summary:
|
||||
|
||||
Add support for new versions of Debian and Ubuntu!
|
||||
|
||||
Features:
|
||||
####Features:
|
||||
- Add support for Ubuntu Trusty (14.04)
|
||||
- Add support for Debian Jessie (8.x)
|
||||
|
||||
2014-01-06 - Version 1.1.0
|
||||
##2014-01-06 - Version 1.1.0
|
||||
|
||||
Summary:
|
||||
####Summary:
|
||||
|
||||
Primarily a release for Ubuntu users!
|
||||
|
||||
Features:
|
||||
####Features:
|
||||
- Add support for Ubuntu Saucy (13.10)
|
||||
- Add `java_home` parameter for centralized setting of JAVA_HOME.
|
||||
- Add Scientific Linux
|
||||
|
||||
Bugfixes:
|
||||
###Bugfixes:
|
||||
- Plus signs are valid in debian/ubuntu package names.
|
||||
|
||||
|
||||
|
||||
1.0.2 ()
|
||||
|
||||
Brett Porter <brett@apache.org>
|
||||
* Support Scientific Linux
|
||||
|
||||
1.0.1 (2013-08-01)
|
||||
##2013-08-01 - Version 1.0.1
|
||||
|
||||
Matthaus Owens <matthaus@puppetlabs.com>
|
||||
* Update java packages for Fedora systems
|
||||
|
||||
1.0.0 (2013-07-29)
|
||||
##2013-07-29 - Version 1.0.0
|
||||
|
||||
####Detailed Changes
|
||||
|
||||
Krzysztof Suszyński <krzysztof.suszynski@coi.gov.pl>
|
||||
* Adding support for Oracle Enterprise Linux
|
||||
@@ -68,32 +78,39 @@ Nathan R Valentine <nrvale0@gmail.com>
|
||||
Sharif Nassar <sharif@mediatemple.net>
|
||||
* Add support for Debian alternatives, and more than one JDK/JRE per platform.
|
||||
|
||||
2013-04-04 Reid Vandewiele <reid@puppetlabs.com> - 0.3.0
|
||||
##2013-04-04 - Version 0.3.0
|
||||
Reid Vandewiele <reid@puppetlabs.com> -
|
||||
* Refactor, introduce params pattern
|
||||
|
||||
2012-11-15 Scott Schneider <sschneider@puppetlabs.com> - 0.2.0
|
||||
##2012-11-15 - Version 0.2.0
|
||||
Scott Schneider <sschneider@puppetlabs.com>
|
||||
* Add Solaris support
|
||||
|
||||
2011-06-16 Jeff McCune <jeff@puppetlabs.com> - 0.1.5
|
||||
##2011-06-16 - Version 0.1.5
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Add Debian based distro (Lucid) support
|
||||
|
||||
2011-06-02 Jeff McCune <jeff@puppetlabs.com> - 0.1.4
|
||||
##2011-06-02 - Version 0.1.4
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Fix class composition ordering problems
|
||||
|
||||
2011-05-28 Jeff McCune <jeff@puppetlabs.com> - 0.1.3
|
||||
##2011-05-28 - Version 0.1.3
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Remove stages
|
||||
|
||||
2011-05-26 Jeff McCune <jeff@puppetlabs.com> - 0.1.2
|
||||
##2011-05-26 - Version 0.1.2
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Changes JRE/JDK selection class parameter to $distribution
|
||||
|
||||
2011-05-25 Jeff McCune <jeff@puppetlabs.com> - 0.1.1
|
||||
##2011-05-25 - Version 0.1.1
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Re-did versioning to follow semantic versioning
|
||||
|
||||
2011-05-25 Jeff McCune <jeff@puppetlabs.com> - 1.0.1
|
||||
* Add validation of class parameters
|
||||
|
||||
2011-05-24 Jeff McCune <jeff@puppetlabs.com> - 1.0.0
|
||||
##2011-05-24 - Version 0.1.0
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Default to JDK version 6u25
|
||||
|
||||
2011-05-24 Jeff McCune <jeff@puppetlabs.com> - 0.0.1
|
||||
##2011-05-24 - Version 0.0.1
|
||||
Jeff McCune <jeff@puppetlabs.com>
|
||||
* Initial release
|
||||
@@ -54,7 +54,7 @@ The following parameters are available in the java module:
|
||||
|
||||
* `distribution`: The Java distribution to install. Can be 'jdk','jre', or, where the platform supports alternative packages, 'sun-jdk', 'sun-jre', 'oracle-jdk', 'oracle-jre'. Defaults to 'jdk'.
|
||||
|
||||
*`version`: The version of Java to install, if you want to ensure a particular version. By default, the module ensures that Java is present but does not require a specific version.
|
||||
* `version`: The version of Java to install, if you want to ensure a particular version. By default, the module ensures that Java is present but does not require a specific version.
|
||||
|
||||
* `package`: The name of the Java package. This is configurable in case you want to install a non-standard Java package. If not set, the module will install the appropriate package for the `distribution` parameter and target platform. If you set `package`, the `distribution` parameter will do nothing.
|
||||
|
||||
@@ -78,7 +78,7 @@ OpenJDK is supported on:
|
||||
* Debian 6, 7
|
||||
* Ubuntu 10.04, 12.04, 14.04
|
||||
* Solaris 11
|
||||
* SLES 11 SP1
|
||||
* SLES 11 SP1, 12
|
||||
|
||||
Sun Java is supported on:
|
||||
* Debian 6
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# On Debian systems, if alternatives are set, manually assign them.
|
||||
class java::config ( ) {
|
||||
case $::osfamily {
|
||||
Debian: {
|
||||
'Debian': {
|
||||
if $java::use_java_alternative != undef and $java::use_java_alternative_path != undef {
|
||||
exec { 'update-java-alternatives':
|
||||
path => '/usr/bin:/usr/sbin:/bin:/sbin',
|
||||
|
||||
@@ -58,28 +58,28 @@ class java(
|
||||
}
|
||||
|
||||
$use_java_package_name = $package ? {
|
||||
default => $package,
|
||||
undef => $default_package_name,
|
||||
default => $package,
|
||||
}
|
||||
|
||||
## If $java_alternative is set, use that.
|
||||
## Elsif the DEFAULT package is being used, then use $default_alternative.
|
||||
## Else undef
|
||||
$use_java_alternative = $java_alternative ? {
|
||||
default => $java_alternative,
|
||||
undef => $use_java_package_name ? {
|
||||
$default_package_name => $default_alternative,
|
||||
default => undef,
|
||||
}
|
||||
},
|
||||
default => $java_alternative,
|
||||
}
|
||||
|
||||
## Same logic as $java_alternative above.
|
||||
$use_java_alternative_path = $java_alternative_path ? {
|
||||
default => $java_alternative_path,
|
||||
undef => $use_java_package_name ? {
|
||||
$default_package_name => $default_alternative_path,
|
||||
default => undef,
|
||||
}
|
||||
},
|
||||
default => $java_alternative_path,
|
||||
}
|
||||
|
||||
anchor { 'java::begin:': }
|
||||
|
||||
@@ -119,6 +119,19 @@ class java::params {
|
||||
$jre_package = 'java-1_6_0-ibm'
|
||||
}
|
||||
|
||||
"SLES": {
|
||||
case $::operatingsystemmajrelease{
|
||||
default: {
|
||||
$jdk_package = 'java-1_6_0-ibm-devel'
|
||||
$jre_package = 'java-1_6_0-ibm'
|
||||
}
|
||||
'12': {
|
||||
$jdk_package = 'java-1_7_0-openjdk-devel'
|
||||
$jre_package = 'java-1_7_0-openjdk'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
'OpenSuSE': {
|
||||
$jdk_package = 'java-1_7_0-openjdk-devel'
|
||||
$jre_package = 'java-1_7_0-openjdk'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppetlabs-java",
|
||||
"version": "1.1.2",
|
||||
"version": "1.2.0",
|
||||
"author": "puppetlabs",
|
||||
"summary": "Manage the official Java runtime",
|
||||
"license": "Apache",
|
||||
@@ -56,7 +56,8 @@
|
||||
{
|
||||
"operatingsystem": "SLES",
|
||||
"operatingsystemrelease": [
|
||||
"11 SP1"
|
||||
"11 SP1",
|
||||
"12"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -18,9 +18,22 @@ unless ENV["RS_PROVISION"] == "no" or ENV["BEAKER_provision"] == "no"
|
||||
on host, "/bin/echo '' > #{host["hieraconf"]}"
|
||||
end
|
||||
on host, "mkdir -p #{host["distmoduledir"]}"
|
||||
on host, "puppet module install puppetlabs-stdlib", :acceptable_exit_codes => [0,1]
|
||||
if host['platform'] =~ /sles-1/i || host['platform'] =~ /solaris-1/i
|
||||
get_stdlib = <<-stdlib
|
||||
package{'wget':}
|
||||
exec{'download':
|
||||
command => "wget -P /root/ https://forgeapi.puppetlabs.com/v3/files/puppetlabs-stdlib-4.3.2.tar.gz --no-check-certificate",
|
||||
path => ['/opt/csw/bin/','/usr/bin/']
|
||||
}
|
||||
stdlib
|
||||
apply_manifest_on(host, get_stdlib)
|
||||
# have to use force otherwise it checks ssl cert even though it is a local file
|
||||
on host, puppet('module install /root/puppetlabs-stdlib-4.3.2.tar.gz --force')
|
||||
else
|
||||
on host, puppet("module install puppetlabs-stdlib")
|
||||
# For test support
|
||||
on host, "puppet module install puppetlabs-apt", :acceptable_exit_codes => [0,1]
|
||||
on host, puppet("module install puppetlabs-apt")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -34,6 +47,8 @@ RSpec.configure do |c|
|
||||
# Configure all nodes in nodeset
|
||||
c.before :suite do
|
||||
# Install module
|
||||
puppet_module_install(:source => proj_root, :module_name => "java")
|
||||
hosts.each do |host|
|
||||
copy_module_to(host, :source => proj_root, :module_name => "java")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user