Revision 09fd7d98
Added by Ivan Necas about 10 years ago
manifests/init.pp | ||
---|---|---|
}
|
||
|
||
if $pulp {
|
||
class { 'certs::apache': hostname => $capsule_fqdn }
|
||
class { 'certs::apache':
|
||
hostname => $capsule_fqdn
|
||
}
|
||
|
||
class { 'pulp':
|
||
default_password => $pulp_admin_password,
|
||
oauth_key => $pulp_oauth_key,
|
||
... | ... | |
}
|
||
|
||
if $puppet {
|
||
class { 'certs::puppet': hostname => $capsule_fqdn } ~>
|
||
|
||
class { 'certs::puppet':
|
||
hostname => $capsule_fqdn
|
||
} ~>
|
||
class { 'puppet':
|
||
server => true,
|
||
server_foreman_url => $foreman_url,
|
||
... | ... | |
}
|
||
}
|
||
|
||
$foreman_proxy = $tftp or $dhcp or $dns or $puppet or $puppetca
|
||
|
||
if $tftp or $dhcp or $dns or $puppet or $puppetca {
|
||
if $foreman_proxy {
|
||
|
||
class { 'certs::foreman_proxy':
|
||
hostname => $capsule_fqdn,
|
||
... | ... | |
if $certs_tar {
|
||
certs::tar_extract { $capsule::certs_tar: }
|
||
|
||
if defined(Class['certs::apache']) {
|
||
if $pulp {
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::apache']
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::pulp_child']
|
||
}
|
||
|
||
if defined(Class['certs::foreman_proxy']) {
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::foreman_proxy']
|
||
if $puppet {
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::puppet']
|
||
}
|
||
|
||
if defined(Class['certs::pulp_child']) {
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::pulp_child']
|
||
if $foreman_proxy {
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::foreman_proxy']
|
||
}
|
||
|
||
if defined(Class['certs::puppet']) {
|
||
Certs::Tar_extract[$certs_tar] -> Class['certs::puppet']
|
||
}
|
||
}
|
||
}
|
Also available in: Unified diff
Refs #5423 - address PR comments