Skip to content

Commit

Permalink
refs #15931 - foreman_proxy_content: pass the cname parameter from th…
Browse files Browse the repository at this point in the history
…e cli

this enables Kafo to set the subjectAltName of the certificates via
--foreman-proxy-cname. The option can be given multiple times to add
multple cnames.
  • Loading branch information
evgeni committed Dec 29, 2016
1 parent dcb0688 commit 38df80c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions manifests/foreman_proxy_content.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,30 @@
#
# $foreman_proxy_fqdn:: fqdn of the foreman proxy. REQUIRED
#
# $foreman_proxy_cname:: additional names of the foreman proxy.
# type:array
#
# $certs_tar:: path to tar file with certs to generate. REQUIRED
#
class certs::foreman_proxy_content (
$parent_fqdn = $fqdn,
$foreman_proxy_fqdn = $certs::node_fqdn,
$certs_tar = $certs::params::certs_tar
$parent_fqdn = $fqdn,
$foreman_proxy_fqdn = $certs::node_fqdn,
$foreman_proxy_cname = $certs::node_cname,
$certs_tar = $certs::params::certs_tar
) inherits certs::params {

# until we support again pushing the cert rpms to the Katello,
# make sure the certs_tar path is present
validate_present($certs_tar)
validate_present($foreman_proxy_fqdn)

class { '::certs::puppet': hostname => $foreman_proxy_fqdn }
class { '::certs::foreman': hostname => $foreman_proxy_fqdn }
class { '::certs::foreman_proxy': hostname => $foreman_proxy_fqdn }
class { '::certs::apache': hostname => $foreman_proxy_fqdn }
class { '::certs::qpid': hostname => $foreman_proxy_fqdn }
class { '::certs::qpid_router': hostname => $foreman_proxy_fqdn }
class { '::certs::qpid_client': hostname => $foreman_proxy_fqdn }
class { '::certs::puppet': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
class { '::certs::foreman': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
class { '::certs::foreman_proxy': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
class { '::certs::apache': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
class { '::certs::qpid': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
class { '::certs::qpid_router': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }
class { '::certs::qpid_client': hostname => $foreman_proxy_fqdn, cname => $foreman_proxy_cname }

if $certs_tar {
certs::tar_create { $certs_tar:
Expand Down

0 comments on commit 38df80c

Please sign in to comment.