Frank Kloeker 3d264a2e2b Change package install from openjdk-7-jre-headless to default-jre-headless.
This will install as depedency the right
Java package:
openjdk-6-jre-headless on Ubuntu 12.04
openjdk-7-jre-headless on Ubuntu 14.04
openjdk-8-jre-headless on Ubuntu 16.04

Java home is already set to /usr/lib/jvm/default-java

Change-Id: I834a3f3eb2f7d509be05aae9011748687f786745
2016-10-14 21:17:24 +02:00

37 lines
1.2 KiB
Puppet

# Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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.
#
# == Class: zanata::wildfly
#
class zanata::wildfly(
$wildfly_version = '9.0.1',
$wildfly_install_source = 'https://repo1.maven.org/maven2/org/wildfly/wildfly-dist/9.0.1.Final/wildfly-dist-9.0.1.Final.tar.gz',
) {
$javahome = '/usr/lib/jvm/default-java/jre/'
package { 'default-jre-headless':
ensure => present,
}
class { '::wildfly':
version => $wildfly_version,
install_source => $wildfly_install_source,
config => 'standalone.xml',
java_home => $javahome,
java_xmx => '4096m',
require => Package['default-jre-headless'],
}
}