Revision 37540211
Added by Eric Helms over 10 years ago
manifests/params.pp | ||
---|---|---|
# Candlepin params
|
||
class candlepin::params {
|
||
include katello::params
|
||
|
||
$db_user = katello_config_value('candlepin_db_user')
|
||
$db_name = katello_config_value('candlepin_db_name')
|
||
if file_exists('/usr/sbin/tomcat') and file_exists('/usr/sbin/tomcat6') {
|
||
$tomcat = 'tomcat'
|
||
}
|
||
else {
|
||
$tomcat = 'tomcat6'
|
||
}
|
||
|
||
# this comes from keystore
|
||
$db_pass = katello_config_value('candlepin_db_password')
|
||
$db_user = 'candlepin'
|
||
$db_name = 'candlepin'
|
||
|
||
# password for server.xml keystore
|
||
$keystore_password = katello_create_read_password(katello_config_value('keystore_password_file'))
|
||
# this comes from keystore
|
||
$db_pass = 'candlepin'
|
||
|
||
# where to store output from cpsetup execution
|
||
$cpdb_log = "${katello::params::configure_log_base}/cpdb.log"
|
||
$crl_file = "/var/lib/candlepin/candlepin-crl.crl"
|
||
$log_dir = '/var/log/candlepin'
|
||
$cpdb_log = "${log_dir}/cpdb.log"
|
||
|
||
$crl_file = '/var/lib/candlepin/candlepin-crl.crl'
|
||
|
||
require "katello::params"
|
||
$katello_oauth_key = $katello::params::oauth_key
|
||
$katello_oauth_secret = $katello::params::oauth_secret
|
||
$oauth_key = 'candlepin'
|
||
$oauth_secret = 'candlepin'
|
||
|
||
$thumbslug_oauth_key = 'thumbslug'
|
||
$thumbslug_oauth_secret = 'thumbslug'
|
||
|
||
$user_groups = []
|
||
|
||
# database reinitialization flag
|
||
$reset_data = katello_config_value('reset_data')
|
||
|
||
$weburl = "https://${::fqdn}/${::katello::params::deployment_url}/distributors?uuid="
|
||
$apiurl = "https://${::fqdn}/${::katello::params::deployment_url}/api/distributors/"
|
||
|
||
case $katello::params::deployment {
|
||
'headpin' : {
|
||
require "thumbslug::params"
|
||
$thumbslug_oauth_key = "thumbslug"
|
||
$thumbslug_oauth_secret = $thumbslug::params::oauth_secret
|
||
$env_filtering_enabled = "false"
|
||
}
|
||
default : {
|
||
$env_filtering_enabled = "true"
|
||
}
|
||
}
|
||
$reset_data = 'NONE'
|
||
|
||
$env_filtering_enabled = true
|
||
$thumbslug_enabled = false
|
||
|
||
$deployment_url = 'candlepin'
|
||
|
||
}
|
Also available in: Unified diff
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.