diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-08-21 11:42:06 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-08-21 11:42:06 +0000 |
commit | 1dc48e6b9443f8433862901ba328d043ac1d1fbf (patch) | |
tree | eecd349005bb657693f67bfcac56ec13eab34d21 /manifests/certmonger/rabbitmq.pp | |
parent | 207b1ea97b572aefad0a567a978e6bd6172e2b89 (diff) | |
parent | 095d130f9dbadb698c2c349819e754a907455ee0 (diff) |
Merge "Certmonger: Make postsave command configurable"
Diffstat (limited to 'manifests/certmonger/rabbitmq.pp')
-rw-r--r-- | manifests/certmonger/rabbitmq.pp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/manifests/certmonger/rabbitmq.pp b/manifests/certmonger/rabbitmq.pp index 4a47938..15b1fc3 100644 --- a/manifests/certmonger/rabbitmq.pp +++ b/manifests/certmonger/rabbitmq.pp @@ -31,6 +31,11 @@ # (Optional) The CA that certmonger will use to generate the certificates. # Defaults to hiera('certmonger_ca', 'local'). # +# [*postsave_cmd*] +# (Optional) Specifies the command to execute after requesting a certificate. +# If nothing is given, it will default to: "systemctl restart ${service name}" +# Defaults to undef. +# # [*principal*] # (Optional) The service principal that is set for the service in kerberos. # Defaults to undef @@ -40,12 +45,13 @@ class tripleo::certmonger::rabbitmq ( $service_certificate, $service_key, $certmonger_ca = hiera('certmonger_ca', 'local'), + $postsave_cmd = undef, $principal = undef, ) { include ::certmonger include ::rabbitmq::params - $postsave_cmd = "systemctl restart ${::rabbitmq::params::service_name}" + $postsave_cmd_real = pick($postsave_cmd, "systemctl restart ${::rabbitmq::params::service_name}") certmonger_certificate { 'rabbitmq' : ensure => 'present', certfile => $service_certificate, @@ -53,7 +59,7 @@ class tripleo::certmonger::rabbitmq ( hostname => $hostname, dnsname => $hostname, principal => $principal, - postsave_cmd => $postsave_cmd, + postsave_cmd => $postsave_cmd_real, ca => $certmonger_ca, wait => true, require => Class['::certmonger'], |