From ab52b2474fa218b056748526c1efdc36855820c7 Mon Sep 17 00:00:00 2001 From: "Elizabeth K. Joseph" Date: Wed, 17 Dec 2014 17:45:53 -0800 Subject: [PATCH] Add Rakefile, TODO & Wildfly configuration support This is an incremental commit to get this module started by configuring the Wildfly application server. Also add Rakefile and TODO so the status of this module is clear. Change-Id: I2a7d50b68b8e416d7be0f32c265f2fdb52bdb3ee --- Rakefile | 8 ++++++++ TODO | 2 ++ manifests/wildfly.pp | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 Rakefile create mode 100644 TODO create mode 100644 manifests/wildfly.pp diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..ff1f0d7 --- /dev/null +++ b/Rakefile @@ -0,0 +1,8 @@ +require 'rubygems' +require 'puppetlabs_spec_helper/rake_tasks' +require 'puppet-lint/tasks/puppet-lint' +PuppetLint.configuration.fail_on_warnings = true +PuppetLint.configuration.send('disable_80chars') +PuppetLint.configuration.send('disable_autoloader_layout') +PuppetLint.configuration.send('disable_class_inherits_from_params_class') +PuppetLint.configuration.send('disable_class_parameter_defaults') diff --git a/TODO b/TODO new file mode 100644 index 0000000..cdaa904 --- /dev/null +++ b/TODO @@ -0,0 +1,2 @@ +Configuration MySQL for Zanata +Installation of Zanata service itself on top of Wildfly diff --git a/manifests/wildfly.pp b/manifests/wildfly.pp new file mode 100644 index 0000000..07f5131 --- /dev/null +++ b/manifests/wildfly.pp @@ -0,0 +1,35 @@ +# 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.2.0', + $wildfly_install_source = 'http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.tar.gz', + $wildfly_install_file = 'wildfly-8.2.0.Final.tar.gz', +) { + include wildfly + + package { 'openjdk-7-jre-headless': + ensure => present, + } + + class { 'wildfly::install': + version => $wildfly_version, + install_source => $wildfly_install_source, + install_file => $wildfly_install_file, + java_home => '/usr/lib/jvm/java-7-openjdk-amd64/jre/', + require => Package['openjdk-7-jre-headless'], + } +}