puppet-katello/manifests/params.pp @ 4e995792
4e995792 | Eric D. Helms | # Katello Default Params
|
|
ae7d4aa1 | Eric D. Helms | class katello::params {
|
|
4e995792 | Eric D. Helms | if ($::operatingsystem == 'RedHat' or $::operatingsystem == 'CentOS'){
|
|
ae7d4aa1 | Eric D. Helms | $scl_prefix = 'ruby193-'
|
|
$scl_root = '/opt/rh/ruby193/root'
|
|||
} else {
|
|||
$scl_prefix = ''
|
|||
$scl_root = ''
|
|||
}
|
|||
# First User and Org settings
|
|||
$user_name = 'admin'
|
|||
$user_pass = 'changeme'
|
|||
$user_email = 'root@localhost'
|
|||
$org_name = 'ACME_Corporation'
|
|||
$deployment_url = '/katello'
|
|||
4e995792 | Eric D. Helms | if file_exists('/usr/sbin/tomcat') and !file_exists('/usr/sbin/tomcat6') {
|
|
$tomcat = 'tomcat'
|
|||
ae7d4aa1 | Eric D. Helms | }
|
|
else {
|
|||
4e995792 | Eric D. Helms | $tomcat = 'tomcat6'
|
|
ae7d4aa1 | Eric D. Helms | }
|
|
case $deployment_url {
|
|||
'/katello': {
|
|||
$deployment = 'katello'
|
|||
}
|
|||
'/headpin': {
|
|||
$deployment = 'headpin'
|
|||
}
|
|||
default : {
|
|||
4e995792 | Eric D. Helms | $deployment = 'katello'
|
|
ae7d4aa1 | Eric D. Helms | }
|
|
}
|
|||
# HTTP Proxy settings (currently used by pulp)
|
|||
$proxy_url = 'NONE'
|
|||
$proxy_port = 'NONE'
|
|||
$proxy_user = 'NONE'
|
|||
$proxy_pass = 'NONE'
|
|||
# system settings
|
|||
$host = ''
|
|||
4e995792 | Eric D. Helms | $user = 'katello'
|
|
$group = 'katello'
|
|||
$user_groups = 'foreman'
|
|||
$config_dir = '/etc/katello'
|
|||
$katello_dir = '/usr/share/katello'
|
|||
$environment = 'production'
|
|||
$log_dir = '/var/log/katello'
|
|||
$log_base = '/var/log/katello'
|
|||
$configure_log_base = "${log_base}/katello-install"
|
|||
$db_env_log = "${configure_log_base}/db_env.log"
|
|||
$migrate_log = "${configure_log_base}/db_migrate.log"
|
|||
$seed_log = "${configure_log_base}/db_seed.log"
|
|||
ae7d4aa1 | Eric D. Helms | ||
# katello upgrade settings
|
|||
4e995792 | Eric D. Helms | $katello_upgrade_scripts_dir = '/usr/share/katello/install/upgrade-scripts'
|
|
$katello_upgrade_history_file = '/var/lib/katello/upgrade-history'
|
|||
ae7d4aa1 | Eric D. Helms | ||
# SSL settings
|
|||
4e995792 | Eric D. Helms | $ssl_certificate_file = '/etc/candlepin/certs/candlepin-ca.crt'
|
|
$ssl_certificate_key_file = '/etc/candlepin/certs/candlepin-ca.key'
|
|||
ae7d4aa1 | Eric D. Helms | $ssl_certificate_ca_file = $ssl_certificate_file
|
|
# sysconfig settings
|
|||
$job_workers = 1
|
|||
# OAUTH settings
|
|||
4e995792 | Eric D. Helms | $oauth_key = 'katello'
|
|
ae7d4aa1 | Eric D. Helms | ||
# we set foreman oauth key to foreman, so that katello knows where the call
|
|||
# comes from and can find the rigth secret. This way only one key-secret pair
|
|||
# is needed to be mainained for duplex communication.
|
|||
4e995792 | Eric D. Helms | $foreman_oauth_key = 'foreman'
|
|
ae7d4aa1 | Eric D. Helms | $oauth_secret = find_or_create_password('oauth_token_file')
|
|
# Subsystems settings
|
|||
4e995792 | Eric D. Helms | $candlepin_url = 'https://localhost:8443/candlepin'
|
|
$pulp_url = subsystem_url('pulp/api/v2/')
|
|||
$foreman_url = subsystem_url('foreman')
|
|||
ae7d4aa1 | Eric D. Helms | ||
# database reinitialization flag
|
|||
$reset_data = 'NONE'
|
|||
# Delete this from configuration check
|
|||
$use_foreman = false
|
|||
$ldap_roles = false
|
|||
$validate_ldap = false
|
|||
}
|