Project

General

Profile

« Previous | Next » 

Revision a64c58e8

Added by Dominic Cleal almost 9 years ago

refs #4841 - change EL OSes to use 'tfm' SCL prefix

Parameters are supplied on the main foreman class to revert behaviour
for Foreman 1.9 and prior, plus on three plugin classes with
non-standard package names.

Closes GH-348

View differences:

manifests/plugin/puppetdb.pp
# Installs puppetdb_foreman plugin
class foreman::plugin::puppetdb {
case $::osfamily {
'RedHat': {
case $::operatingsystem {
'fedora': {
$package = 'rubygem-puppetdb_foreman'
}
default: {
$package = 'ruby193-rubygem-puppetdb_foreman'
}
}
}
'Debian': {
$package = 'ruby-puppetdb-foreman'
}
'Linux': {
case $::operatingsystem {
'Amazon': {
$package = 'ruby193-rubygem-puppetdb_foreman'
}
default: {
fail("${::hostname}: puppetdb_foreman does not support operatingsystem ${::operatingsystem}")
}
}
}
default: {
fail("${::hostname}: puppetdb_foreman does not support osfamily ${::osfamily}")
}
}
# = PuppetDB Foreman plugin
#
# Installs the puppetdb_foreman plugin
#
# === Parameters:
#
# $package:: Package name to install, use ruby193-rubygem-puppetdb_foreman on Foreman 1.8/1.9 on EL
#
class foreman::plugin::puppetdb(
$package = $foreman::plugin::puppetdb::params::package,
) inherits foreman::plugin::puppetdb::params {
foreman::plugin {'puppetdb':
package => $package,
}

Also available in: Unified diff