Project

General

Profile

« Previous | Next » 

Revision 37540211

Added by Eric Helms over 10 years ago

Updates to become a parameterized class and reduce the dependencies
this module has to only the certs module.

Previously, this module for deploying Candlepin was tightly coupled
to a few different modules including the Katello module. This work
attempts to invert the relationship by parameterizing the Candlepin
class. This will allow a module like the Katello module to set certain
parameters that it would like Candlepin to use during configuration.
The only module left as a dependence is the certs module that creates
and sets up a keystore for tomcat via https.

View differences:

manifests/install.pp
# Candlepin Install
class candlepin::install {
$os = $operatingsystem ? {
"RedHat" => "RHEL",
"CentOS" => "RHEL",
default => "Fedora"
}
yumrepo { "katello-candlepin":
name => "katello-candlepin",
baseurl => "http://fedorapeople.org/groups/katello/releases/yum/katello-candlepin/${os}/${lsbmajdistrelease}/x86_64/",
enabled => "1",
gpgcheck => "0"
}
package {"candlepin-${katello::params::tomcat}":
require => Yumrepo["katello-candlepin"],
ensure => installed
package {['candlepin', "candlepin-${candlepin::tomcat}"]:
ensure => 'installed'
}
}

Also available in: Unified diff