Project

General

Profile

Download (2.05 KB) Statistics
| Branch: | Tag: | Revision:
# Certs Parameters
class certs::params {

if file_exists('/usr/sbin/tomcat') and file_exists('/usr/sbin/tomcat6') {
$tomcat = 'tomcat'
}
else {
$tomcat = 'tomcat6'
}

$log_dir = '/var/log/certs'

$node_fqdn = $::fqdn

$ca_common_name = $::fqdn # we need fqdn as CA common name as candlepin uses it as a ssl cert

$generate = true
$regenerate = false
$regenerate_ca = false
$deploy = true

$country = 'US'
$state = 'North Carolina'
$city = 'Raleigh'
$org = 'SomeOrg'
$org_unit = 'SomeOrgUnit'
$expiration = '365'
$ca_expiration = '36500'

$nss_db_password_file = '/etc/katello/nss_db_password-file'
$nss_db_dir = '/etc/pki/katello/nssdb'
$ssl_pk12_password_file = '/etc/katello/pk12_password-file'

$user_groups = 'foreman'

$foreman_client_cert = '/etc/foreman/client_cert.pem'
$foreman_client_key = '/etc/foreman/client_key.pem'
$foreman_client_ca = '/etc/foreman/client_ca.pem'

$foreman_proxy_cert = '/etc/foreman-proxy/ssl_cert.pem'
$foreman_proxy_key = '/etc/foreman-proxy/ssl_key.pem'
$foreman_proxy_ca = '/etc/foreman-proxy/ssl_ca.pem'

$puppet_client_cert = '/etc/puppet/client_cert.pem'
$puppet_client_key = '/etc/puppet/client_key.pem'
$puppet_client_ca = '/etc/puppet/client_ca.pem'

$apache_ssl_cert = '/etc/pki/tls/certs/katello-node.crt'
$apache_ssl_key = '/etc/pki/tls/private/katello-node.key'
$apache_ca_cert = '/etc/pki/tls/certs/katello-ca.crt'

$candlepin_certs_storage = '/etc/candlepin/certs'
$candlepin_ca_cert = '/etc/candlepin/certs/candlepin-ca.crt'
$candlepin_ca_key = '/etc/candlepin/certs/candlepin-ca.key'
$candlepin_pki_dir = '/etc/pki/katello'
$candlepin_keystore = '/etc/pki/katello/keystore'
$candlepin_keystore_password_file = '/etc/katello/keystore_password-file'
$candlepin_keystore_password = find_or_create_password($candlepin_keystore_password_file)
$candlepin_certs_dir = '/etc/candlepin/certs'

}
(8-8/14)