Elizabeth K. Joseph 1ad3f8f645 Initial commit of Zanata-specific sections
Running of Zanata requires installation of Zanata war file itself, two
modules and a config file.

Set Wildfly to be version 8.1.0, the current one tested and
confirmed working with Zanata.

Co-Authored-By: stephane <stephane@alum.mit.edu>
Change-Id: I1dc8407cf16a7543357691fd6a1d053afda298d5
2015-03-19 14:53:16 -07:00

38 lines
1.3 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 = '8.1.0',
$wildfly_install_source = 'https://download.jboss.org/wildfly/8.1.0.Final/wildfly-8.1.0.Final.tar.gz',
) {
include wildfly
package { 'openjdk-7-jre-headless':
ensure => present,
}
$wildfly_install_file = inline_template('<%= File.basename(@wildfly_install_source) %>')
class { 'wildfly::install':
version => $wildfly_version,
install_source => $wildfly_install_source,
install_file => $wildfly_install_file,
config => 'standalone.xml',
java_home => '/usr/lib/jvm/java-7-openjdk-amd64/jre/',
require => Package['openjdk-7-jre-headless'],
}
}