puppet-certs/manifests/init.pp @ 2c2acd78
97bac87e | Eric D. Helms | # == Class: certs
|
|
#
|
|||
# Install and configure certs
|
|||
#
|
|||
# === Parameters:
|
|||
#
|
|||
# $oauth_key:: The oauth key for talking to the candlepin API;
|
|||
#
|
|||
7f082050 | Ivan Necas | class certs (
|
|
97bac87e | Eric D. Helms | ||
$log_dir = $certs::params::log_dir,
|
|||
$tomcat = $certs::params::tomcat,
|
|||
7f082050 | Ivan Necas | $node_fqdn = $fqdn,
|
|
$generate = true,
|
|||
$regenerate = false,
|
|||
$regenerate_ca = false,
|
|||
$deploy = false,
|
|||
$ca_common_name = $certs::params::ca_common_name,
|
|||
$country = $certs::params::country,
|
|||
$state = $certs::params::state,
|
|||
$city = $certs::params::sity,
|
|||
$org = $certs::params::org,
|
|||
$org_unit = $certs::params::org_unit,
|
|||
$expiration = $certs::params::expiration,
|
|||
97bac87e | Eric D. Helms | $ca_expiration = $certs::params::ca_expiration,
|
|
$user_groups = $certs::params::user_groups,
|
|||
$pki_dir = $certs::params::pki_dir,
|
|||
$ssl_ca_password_file = $certs::params::ssl_ca_password_file,
|
|||
$nss_db_password_file = $certs::params::nss_db_password_file,
|
|||
$ssl_pk12_password_file = $certs::params::ssl_pk12_password_file,
|
|||
) inherits certs::params {
|
|||
class { 'certs::install': }
|
|||
7f082050 | Ivan Necas | ||
$default_ca = Ca['candlepin-ca']
|
|||
ca { 'candlepin-ca':
|
|||
ensure => present,
|
|||
common_name => $certs::ca_common_name,
|
|||
97bac87e | Eric D. Helms | country => $certs::country,
|
|
state => $certs::state,
|
|||
city => $certs::city,
|
|||
org => $certs::org,
|
|||
org_unit => $certs::org_unit,
|
|||
expiration => $certs::ca_expiration,
|
|||
generate => $certs::generate,
|
|||
regenerate => $certs::regenerate_ca,
|
|||
deploy => true,
|
|||
7f082050 | Ivan Necas | }
|
|
}
|