puppet-certs/manifests/capsule.pp @ 5f2f0557
01eddaf4 | Ivan Nečas | # Prepare the certificates for the node from the parent node
|
|
#
|
|||
# === Parameters:
|
|||
#
|
|||
# $parent_fqdn:: fqdn of the parent node. Does not usually
|
|||
# need to be set.
|
|||
#
|
|||
5f2f0557 | Ivan Nečas | # $capsule_fqdn:: fqdn of the capsule. REQUIRED
|
|
01eddaf4 | Ivan Nečas | #
|
|
# $certs_tar:: path to tar file with certs to generate
|
|||
#
|
|||
class certs::capsule (
|
|||
5f2f0557 | Ivan Nečas | $parent_fqdn = $fqdn,
|
|
$capsule_fqdn = $certs::node_fqdn,
|
|||
$certs_tar = $certs::params::certs_tar
|
|||
01eddaf4 | Ivan Nečas | ) inherits certs::params {
|
|
5f2f0557 | Ivan Nečas | validate_present($capsule_fqdn)
|
|
01eddaf4 | Ivan Nečas | ||
5f2f0557 | Ivan Nečas | class { 'certs::puppet': hostname => $capsule_fqdn }
|
|
class { 'certs::foreman': hostname => $capsule_fqdn }
|
|||
class { 'certs::foreman_proxy': hostname => $capsule_fqdn }
|
|||
class { 'certs::apache': hostname => $capsule_fqdn }
|
|||
class { 'certs::pulp_child': hostname => $capsule_fqdn }
|
|||
01eddaf4 | Ivan Nečas | class { 'certs::pulp_parent':
|
|
hostname => $parent_fqdn,
|
|||
deploy => true,
|
|||
}
|
|||
if $certs_tar {
|
|||
certs::tar_create { $certs_tar:
|
|||
subscribe => [Class['certs::puppet'],
|
|||
Class['certs::foreman'],
|
|||
Class['certs::foreman_proxy'],
|
|||
Class['certs::apache'],
|
|||
Class['certs::pulp_child']]
|
|||
}
|
|||
}
|
|||
}
|