Pass mistral::api service_name from t-h-t
authorBrad P. Crochet <brad@redhat.com>
Wed, 26 Apr 2017 17:46:17 +0000 (13:46 -0400)
committerBrad P. Crochet <brad@redhat.com>
Sat, 6 May 2017 23:14:47 +0000 (19:14 -0400)
In order to have the chicken-egg work, service_name had to be explicitly
passed to ::mistral::api. This switches to using values from t-h-t.

Change-Id: Ib94e51f863ba59a1a1db47d58aed3ba4e5fc9650
Depends-On: Ie98dd5061d92dbc3c15bdd8926b0e3d62cc471f6

manifests/profile/base/mistral/api.pp

index 3e0eed7..4f81725 100644 (file)
@@ -75,19 +75,11 @@ class tripleo::profile::base::mistral::api (
   }
 
   if $step >= 3 {
-    # TODO: Cleanup when this passes t-h-t
-    class { '::mistral::api':
-      service_name => 'httpd',
-    }
-
+    include ::mistral::api
     include ::apache::mod::ssl
     class { '::mistral::wsgi::apache':
-      ssl_cert   => $tls_certfile,
-      ssl_key    => $tls_keyfile,
-      # The following are temporary and will be passed via t-h-t
-      ssl        => $enable_internal_tls,
-      servername => hiera("fqdn_${mistral_api_network}"),
-      bind_host  => hiera('mistral::api::bind_host'),
+      ssl_cert => $tls_certfile,
+      ssl_key  => $tls_keyfile,
     }
   }
 }