Merge branch 'release'
* release: (maint) facts update oracle.pp (maint) update metadata fixed formatting errors + made various minor changes (MODULES-4958) prep for 2.0.0 release and some markdown rendering fixes
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
fixtures:
|
||||
repositories:
|
||||
stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
|
||||
archive:
|
||||
repo: "git://github.com/voxpupuli/puppet-archive.git"
|
||||
ref: "v1.2.0"
|
||||
archive: "git://github.com/voxpupuli/puppet-archive.git"
|
||||
symlinks:
|
||||
java: "#{source_dir}"
|
||||
|
||||
26
CHANGELOG.md
26
CHANGELOG.md
@@ -1,3 +1,25 @@
|
||||
## Supported Release 2.0.0
|
||||
### Summary
|
||||
|
||||
This is a major release including some bug fixes, new parameters, and general module updates.
|
||||
|
||||
**This release drops Puppet 3 support**
|
||||
|
||||
#### Added
|
||||
- Debian Stretch, Yakkety Yak, Amazon Linux, Oracle Linux, Scientific Linux CERN compatibility
|
||||
- `version_major` and `version_minor` parameters for specifying Java SE version to install
|
||||
- `$JAVA_HOME` now set by the module on compatible systems. The `java_home` parameter is also provided for manual setting. [MODULES-2971](https://tickets.puppetlabs.com/browse/MODULES-2971)
|
||||
- `proxy_server` and `proxy_type` for choosing a proxy server to get Java from
|
||||
|
||||
#### Changed
|
||||
- Moved lower Puppet version requirement to 4.7.0
|
||||
|
||||
#### Fixed
|
||||
- Module no longer downloads the Java archive on Puppet runs if Java is already installed.
|
||||
- java_default_home fact is not always correct on oracle packages [MODULES-4050](https://tickets.puppetlabs.com/browse/MODULES-4050)
|
||||
- Order of operations for archives [MODULES-4751](https://tickets.puppetlabs.com/browse/https://tickets.puppetlabs.com/browse/MODULES-4751)
|
||||
- Increase Xmx setting for `java_version` fact [MODULES-4736](https://tickets.puppetlabs.com/browse/MODULES-4736)
|
||||
|
||||
## Supported Release 1.6.0
|
||||
### Summary
|
||||
|
||||
@@ -125,7 +147,7 @@ Add support for new versions of Debian and Ubuntu!
|
||||
|
||||
## 2014-01-06 - Version 1.1.0
|
||||
|
||||
####Summary:
|
||||
### Summary:
|
||||
|
||||
Primarily a release for Ubuntu users!
|
||||
|
||||
@@ -134,7 +156,7 @@ Primarily a release for Ubuntu users!
|
||||
- Add `java_home` parameter for centralized setting of JAVA_HOME.
|
||||
- Add Scientific Linux
|
||||
|
||||
###Bugfixes:
|
||||
#### Bugfixes:
|
||||
- Plus signs are valid in debian/ubuntu package names.
|
||||
|
||||
## 2013-08-01 - Version 1.0.1
|
||||
|
||||
@@ -180,14 +180,18 @@ Sun Java is supported on:
|
||||
Oracle Java is supported on:
|
||||
* CentOS 6
|
||||
|
||||
### A note about OpenBSD
|
||||
### Known issues
|
||||
|
||||
#### OpenBSD
|
||||
|
||||
OpenBSD packages install Java JRE/JDK in a unique directory structure, not linking
|
||||
the binaries to a standard directory. Because of that, the path to this location
|
||||
is hardcoded in the java_version fact. Whenever a Java upgrade to a newer
|
||||
version/path will be done on OpenBSD, it has to be adapted there.
|
||||
is hardcoded in the `java_version` fact. Whenever you upgrade Java to a newer
|
||||
version, you have to update the path in this fact.
|
||||
|
||||
### A note about FreeBSD
|
||||
By default on FreeBSD Puppet < 4.0, you will see an error as `pkgng` is not the default provider. To fix this, you can install the [zleslie/pkgng module](https://forge.puppetlabs.com/zleslie/pkgng) and set it as the default package provider like so:
|
||||
#### FreeBSD
|
||||
|
||||
By default on FreeBSD, Puppet versions prior to 4.0 throw an error saying `pkgng` is not the default provider. To fix this, install the [zleslie/pkgng module](https://forge.puppetlabs.com/zleslie/pkgng) and set it as the default package provider:
|
||||
|
||||
```puppet
|
||||
Package {
|
||||
@@ -195,12 +199,12 @@ Package {
|
||||
}
|
||||
```
|
||||
|
||||
On Puppet > 4.0 (ie. using the sysutils/puppet4 port), `pkgng` is included within Puppet and it's the default package provider.
|
||||
On Puppet 4.0 and later, `pkgng` is included within Puppet and is the default package provider.
|
||||
|
||||
## Development
|
||||
|
||||
Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We can’t access the huge number of platforms and myriad hardware, software, and deployment configurations that Puppet is intended to serve. We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things. For more information, see our [module contribution guide.](https://docs.puppetlabs.com/forge/contributing.html)
|
||||
Puppet modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. To contribute to Puppet projects, see our [module contribution guide.](https://docs.puppetlabs.com/forge/contributing.html)
|
||||
|
||||
## Contributors
|
||||
|
||||
The list of contributors can be found at: [https://github.com/puppetlabs/puppetlabs-java/graphs/contributors](https://github.com/puppetlabs/puppetlabs-java/graphs/contributors).
|
||||
The list of contributors can be found at [https://github.com/puppetlabs/puppetlabs-java/graphs/contributors](https://github.com/puppetlabs/puppetlabs-java/graphs/contributors).
|
||||
|
||||
@@ -142,9 +142,9 @@ define java::oracle (
|
||||
}
|
||||
|
||||
# determine package type (exe/tar/rpm), destination directory based on OS
|
||||
case $::kernel {
|
||||
case $facts['kernel'] {
|
||||
'Linux' : {
|
||||
case $::osfamily {
|
||||
case $facts['os']['family'] {
|
||||
'RedHat', 'Amazon' : {
|
||||
# Oracle Java 6 comes in a special rpmbin format
|
||||
if $version == '6' {
|
||||
@@ -154,7 +154,7 @@ define java::oracle (
|
||||
}
|
||||
}
|
||||
default : {
|
||||
fail ("unsupported platform ${::operatingsystem}") }
|
||||
fail ("unsupported platform ${$facts['os']['name']}") }
|
||||
}
|
||||
|
||||
$os = 'linux'
|
||||
@@ -162,15 +162,15 @@ define java::oracle (
|
||||
$creates_path = "/usr/java/${install_path}"
|
||||
}
|
||||
default : {
|
||||
fail ( "unsupported platform ${::kernel}" ) }
|
||||
fail ( "unsupported platform ${$facts['kernel']}" ) }
|
||||
}
|
||||
|
||||
# set java architecture nomenclature
|
||||
case $::architecture {
|
||||
case $facts['os']['architecture'] {
|
||||
'i386' : { $arch = 'i586' }
|
||||
'x86_64' : { $arch = 'x64' }
|
||||
default : {
|
||||
fail ("unsupported platform ${::architecture}")
|
||||
fail ("unsupported platform ${$facts['os']['architecture']}")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ define java::oracle (
|
||||
proxy_server => $proxy_server,
|
||||
proxy_type => $proxy_type,
|
||||
}
|
||||
case $::kernel {
|
||||
case $facts['kernel'] {
|
||||
'Linux' : {
|
||||
exec { "Install Oracle java_se ${java_se} ${version}" :
|
||||
path => '/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin',
|
||||
@@ -237,7 +237,7 @@ define java::oracle (
|
||||
}
|
||||
}
|
||||
default : {
|
||||
fail ("unsupported platform ${::kernel}")
|
||||
fail ("unsupported platform ${$facts['kernel']}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppetlabs-java",
|
||||
"version": "1.6.0",
|
||||
"version": "2.0.0",
|
||||
"author": "puppetlabs",
|
||||
"summary": "Installs the correct Java package on various platforms.",
|
||||
"license": "Apache-2.0",
|
||||
@@ -90,6 +90,6 @@
|
||||
],
|
||||
"dependencies": [
|
||||
{"name":"puppetlabs/stdlib","version_requirement":">= 2.4.0 < 5.0.0"},
|
||||
{"name":"puppet/archive","version_requirement":">= 1.1.0 < 1.2.0"}
|
||||
{"name":"puppet/archive","version_requirement":">= 1.1.0 < 2.0.0"}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ require 'spec_helper'
|
||||
|
||||
describe 'java::oracle', :type => :define do
|
||||
context 'On CentOS 64-bit' do
|
||||
let(:facts) { {:kernel => 'Linux', :architecture => 'x86_64', :osfamily => 'RedHat', :operatingsystem => 'CentOS', :operatingsystemrelease => '6.6', :puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)'} }
|
||||
let(:facts) { { :kernel => 'Linux', :os => {:family => 'RedHat', :architecture => 'x86_64', :name => 'CentOS', :release => {:full => '6.0'}}}}
|
||||
|
||||
context 'Oracle Java SE 6 JDK' do
|
||||
let(:params) { {:ensure => 'present', :version => '6', :java_se => 'jdk'} }
|
||||
@@ -55,7 +55,7 @@ describe 'java::oracle', :type => :define do
|
||||
end
|
||||
|
||||
context 'On CentOS 32-bit' do
|
||||
let(:facts) { {:kernel => 'Linux', :architecture => 'i386', :osfamily => 'RedHat', :operatingsystem => 'CentOS', :operatingsystemrelease => '6.6', :puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)'} }
|
||||
let(:facts) { {:kernel => 'Linux', :os => { :family => 'RedHat', :architecture => 'i386', :name => 'CentOS', :release => { :full => '6.6' } } } }
|
||||
|
||||
context 'select Oracle Java SE 6 JDK on RedHat family, 32-bit' do
|
||||
let(:params) { {:ensure => 'present', :version => '6', :java_se => 'jdk'} }
|
||||
@@ -106,52 +106,67 @@ describe 'java::oracle', :type => :define do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'incompatible OSs' do
|
||||
describe 'incompatible OSes' do
|
||||
[
|
||||
{
|
||||
# C14706
|
||||
:kernel => 'windows',
|
||||
:osfamily => 'windows',
|
||||
:operatingsystem => 'windows',
|
||||
:operatingsystemrelease => '8.1',
|
||||
:puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)',
|
||||
:kernel => 'Windows',
|
||||
:os => {
|
||||
:family => 'Windows',
|
||||
:name => 'Windows',
|
||||
:release => {
|
||||
:full => '8.1'
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
# C14707
|
||||
:kernel => 'Darwin',
|
||||
:osfamily => 'Darwin',
|
||||
:operatingsystem => 'Darwin',
|
||||
:operatingsystemrelease => '13.3.0',
|
||||
:puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)',
|
||||
:os => {
|
||||
:family => 'Darwin',
|
||||
:name => 'Darwin',
|
||||
:release => {
|
||||
:full => '13.3.0'
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
# C14708
|
||||
:kernel => 'AIX',
|
||||
:osfamily => 'AIX',
|
||||
:operatingsystem => 'AIX',
|
||||
:operatingsystemrelease => '7100-02-00-000',
|
||||
:puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)',
|
||||
:os => {
|
||||
:family => 'AIX',
|
||||
:name => 'AIX',
|
||||
:release => {
|
||||
:full => '7100-02-00-000'
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
# C14708
|
||||
# C14709
|
||||
:kernel => 'AIX',
|
||||
:osfamily => 'AIX',
|
||||
:operatingsystem => 'AIX',
|
||||
:operatingsystemrelease => '6100-07-04-1216',
|
||||
:puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)',
|
||||
:os => {
|
||||
:family => 'AIX',
|
||||
:name => 'AIX',
|
||||
:release => {
|
||||
:full => '6100-07-04-1216'
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
# C14708
|
||||
# C14710
|
||||
:kernel => 'AIX',
|
||||
:osfamily => 'AIX',
|
||||
:operatingsystem => 'AIX',
|
||||
:operatingsystemrelease => '5300-12-01-1016',
|
||||
:puppetversion => '3.4.3 (Puppet Enterprise 3.2.3)',
|
||||
:os => {
|
||||
:family => 'AIX',
|
||||
:name => 'AIX',
|
||||
:release => {
|
||||
:full => '5300-12-01-1016'
|
||||
}
|
||||
},
|
||||
}
|
||||
].each do |facts|
|
||||
let(:facts) { facts }
|
||||
let :title do 'jdk' end
|
||||
it "is_expected.to fail on #{facts[:operatingsystem]} #{facts[:operatingsystemrelease]}" do
|
||||
it "is_expected.to fail on #{facts[:os][:name]} #{facts[:os][:release][:full]}" do
|
||||
expect { catalogue }.to raise_error Puppet::Error, /unsupported platform/
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user