Skip to content

Commit

Permalink
Clean up Qpid certificate deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Feb 11, 2021
1 parent 6fc79f4 commit 6d6e71b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 104 deletions.
3 changes: 1 addition & 2 deletions manifests/foreman_proxy_content.pp
Expand Up @@ -30,9 +30,8 @@
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 }

certs::tar_create { $certs_tar:
subscribe => Class['certs::puppet', 'certs::foreman', 'certs::foreman_proxy', 'certs::qpid', 'certs::qpid_router', 'certs::apache', 'certs::qpid_client'],
subscribe => Class['certs::puppet', 'certs::foreman', 'certs::foreman_proxy', 'certs::qpid', 'certs::qpid_router', 'certs::apache'],
}
}
4 changes: 2 additions & 2 deletions manifests/qpid.pp
Expand Up @@ -18,8 +18,6 @@
$nss_cert_name = 'broker',
) inherits certs {

Exec { logoutput => 'on_failure' }

$qpid_cert_name = "${hostname}-qpid-broker"

cert { $qpid_cert_name:
Expand Down Expand Up @@ -77,11 +75,13 @@
command => "openssl pkcs12 -in ${client_cert} -inkey ${client_key} -export -out '${pfx_path}' -password 'file:${nss_db_password_file}' -name '${nss_cert_name}'",
path => '/usr/bin',
refreshonly => true,
logoutput => 'on_failure',
} ~>
exec { 'add-private-key-to-nss-db':
command => "pk12util -i '${pfx_path}' -d '${nss_db_dir}' -w '${nss_db_password_file}' -k '${nss_db_password_file}'",
path => '/usr/bin',
refreshonly => true,
logoutput => 'on_failure',
}
}
}
72 changes: 0 additions & 72 deletions manifests/qpid_client.pp

This file was deleted.

28 changes: 0 additions & 28 deletions spec/classes/certs_qpid_client_spec.rb

This file was deleted.

0 comments on commit 6d6e71b

Please sign in to comment.