Compare commits

...

17 Commits

Author SHA1 Message Date
Adrien Thebo
017a749d13 Merge pull request #18 from sschneid/master
Add Solaris support
2012-11-15 11:58:49 -08:00
Scott Schneider
e37f6d5af6 Bumping version to 0.2.0 2012-11-15 11:55:53 -08:00
Scott Schneider
c797e52851 Add Solaris support 2012-11-15 11:23:08 -08:00
Chris Price
4ab58a2f88 Merge pull request #14 from eshamow/use_osfamily_instead_of_operatingsystem
Use osfamily instead of operatingsystem to determine package
2012-10-18 19:10:37 -07:00
Eric Shamow
3afa0813ea Use osfamily instead of operatingsystem to determine package
osfamily is slightly more forgiving, especially for RHEL-based
distributions.
2012-07-10 15:50:27 -06:00
Ben Hughes
4d7154516d Merge pull request #13 from ody/move_to_openjdk
Moves debain packages to openjdk.
2012-05-30 16:18:06 -07:00
Cody Herriges
d027d35e2d Fixing a couple style discrepancies.
Update a couple minor style things that were noticed while making previous
  changes.
2012-05-09 15:47:48 -07:00
Cody Herriges
30b07259a2 Moves debain packages to openjdk.
Change sun-java6-* packages to their openjdk equivalents and add conditional
  based on lsb codename to determine which version to install.
2012-05-09 15:43:19 -07:00
Gary Larizza
6365fcd9f2 Merge pull request #11 from ccaum/master
Allow distributions starting with string `java`

Reviewed-by: Gary Larizza <gary@puppetlabs.com>
2011-09-13 19:28:29 -07:00
Carl Caum
a671ad7cc4 Allow distributions starting with java
Some java distributions can start with java, such as java-sun or java-1.6.0-openjdk.  We should allow these to be specified
2011-09-13 19:55:24 +00:00
Ken Barber
0e4dc2dd81 Merge pull request #10 from kbarber/issues/master/9_empty-metadata
9 - remove empty metadata.json from repo to avoid errors when using from
2011-06-25 11:25:33 -07:00
Ken Barber
4c1161891b 9 - remove empty metadata.json from repo to avoid errors when using from github. 2011-06-25 19:23:45 +01:00
Ken Barber
98e1d30235 Merge pull request #7 from kbarber/issue/master/5_preseed_for_license
5 - Provide a preseed file that preseeds license signing for java package
2011-06-25 11:17:26 -07:00
Ken Barber
b5854b3ef3 Merge pull request #8 from kbarber/issues/master/4_license-file
4 - Add license file.
2011-06-25 10:57:01 -07:00
Ken Barber
e6be2ed785 4 - Add license file. 2011-06-24 23:16:12 +02:00
Ken Barber
b547e53a8b 5 - Provide a preseed file that preseeds license signing for java packages. 2011-06-24 22:52:58 +02:00
Jeff McCune
3b674ac225 Whitespace only change to README 2011-06-16 19:02:34 -07:00
10 changed files with 93 additions and 25 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
pkg/ pkg/
.DS_Store .DS_Store
metadata.json

View File

@@ -1,3 +1,6 @@
2012-11-15 Scott Schneider <sschneider@puppetlabs.com> - 0.2.0
* Add Solaris support
2011-06-16 Jeff McCune <jeff@puppetlabs.com> - 0.1.5 2011-06-16 Jeff McCune <jeff@puppetlabs.com> - 0.1.5
* Add Debian based distro (Lucid) support * Add Debian based distro (Lucid) support

17
LICENSE Normal file
View File

@@ -0,0 +1,17 @@
Puppet OpenNebula Module - Puppet module for managing OpenNebula
Copyright (C) 2011 Puppet Labs Inc
Puppet Labs can be contacted at: info@puppetlabs.com
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -1,5 +1,5 @@
name 'puppetlabs-java' name 'puppetlabs-java'
version '0.1.5' version '0.2.0'
source 'git://github.com/puppetlabs/puppetlabs-java' source 'git://github.com/puppetlabs/puppetlabs-java'
author 'puppetlabs' author 'puppetlabs'
license 'Apache' license 'Apache'

View File

@@ -6,8 +6,8 @@ Currently this simply deploys the package on Enterprise Linux based systems and
Tested on: Tested on:
* Centos 5.6 * Centos 5.6
* Ubuntu 10.04 Lucid * Ubuntu 10.04 Lucid
# RedHat Support # # RedHat Support #

View File

@@ -13,18 +13,18 @@
# [Remember: No empty lines between comments and class definition] # [Remember: No empty lines between comments and class definition]
class java( class java(
$distribution = 'jdk', $distribution = 'jdk',
$version = 'installed' $version = 'present'
) { ) {
validate_re($distribution, '^jdk$|^jre$') validate_re($distribution, '^jdk$|^jre$|^java.*$')
validate_re($version, 'installed|^[._0-9a-zA-Z:-]+$') validate_re($version, 'installed|^[._0-9a-zA-Z:-]+$')
anchor { 'java::begin': } anchor { 'java::begin': }
anchor { 'java::end': } anchor { 'java::end': }
case $operatingsystem { case $::osfamily {
centos, redhat, oel: { 'RedHat': {
class { 'java::package_redhat': class { 'java::package_redhat':
version => $version, version => $version,
@@ -35,12 +35,26 @@ class java(
} }
debian, ubuntu: { 'Debian': {
$distribution_debian = $distribution ? { case $::lsbdistcodename {
jdk => 'sun-java6-jdk', squeeze, lucid: {
jre => 'sun-java6-jre', $distribution_debian = $distribution ? {
jdk => 'openjdk-6-jdk',
jre => 'openjdk-6-jre-headless',
}
}
wheezy, precise: {
$distribution_debian = $distribution ? {
jdk => 'openjdk-7-jdk',
jre => 'openjdk-7-jre-headless',
}
}
default: {
fail("operatingsystem distribution ${::lsbdistcodename} is not supported")
}
} }
class { 'java::package_debian': class { 'java::package_debian':
version => $version, version => $version,
distribution => $distribution_debian, distribution => $distribution_debian,
@@ -50,8 +64,24 @@ class java(
} }
'Solaris': {
$distribution_solaris = $distribution ? {
jdk => 'developer/java/jdk-7',
jre => 'runtime/java/jre-7',
}
class { 'java::package_solaris':
version => $version,
distribution => $distribution_solaris,
require => Anchor['java::begin'],
before => Anchor['java::end'],
}
}
default: { default: {
fail("operatingsystem $operatingsystem is not supported") fail("osfamily ${::osfamily} is not supported")
} }
} }

View File

@@ -24,5 +24,4 @@ class java::package_debian(
ensure => $version, ensure => $version,
name => $distribution, name => $distribution,
} }
} }

View File

@@ -0,0 +1,27 @@
# Class: java::package_solaris
#
# Implementation class of the Java package
# for Solaris based systems.
#
# This class is not meant to be used by the end user
# of the module. It is an implementation class
# of the composite Class[java]
#
# Parameters:
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
class java::package_solaris(
$version,
$distribution
) {
package { 'java':
ensure => $version,
name => $distribution,
}
}

View File

@@ -1,12 +0,0 @@
/*
+-----------------------------------------------------------------------+
| |
| ==> DO NOT EDIT THIS FILE! <== |
| |
| You should edit the `Modulefile` and run `puppet-module build` |
| to generate the `metadata.json` file for your releases. |
| |
+-----------------------------------------------------------------------+
*/
{}

View File

@@ -0,0 +1,3 @@
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true