Add principal to certmonger's haproxy helper
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 18 Jul 2016 15:00:14 +0000 (18:00 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 18 Jul 2016 15:00:14 +0000 (18:00 +0300)
The principal is needed for kerberos-based solutions like FreeIPA.

bp tls-via-certmonger

Change-Id: Ie27848f522d11135b061aef766de2b696c77fcb9

manifests/certmonger/haproxy.pp

index 0806e40..2b738e6 100644 (file)
 #   The post-save-command that certmonger will use once it renews the
 #   certificate.
 #
+# [*principal*]
+#   The haproxy service principal that is set for HAProxy in kerberos.
+#
 define tripleo::certmonger::haproxy (
   $service_pem,
   $service_certificate,
   $service_key,
   $hostname,
   $postsave_cmd,
+  $principal = undef,
 ){
     certmonger_certificate { "${title}-cert":
       hostname     => $hostname,
       certfile     => $service_certificate,
       keyfile      => $service_key,
       postsave_cmd => $postsave_cmd,
+      principal    => $principal,
     }
     concat { $service_pem :
       ensure => present,