httpd: Clean up heat API profiles and add release note
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Fri, 3 Mar 2017 08:40:04 +0000 (10:40 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 7 Mar 2017 15:04:43 +0000 (15:04 +0000)
There were some values that were passed to the classes manually, and
this takes the parameters from t-h-t instead. Also, the release note was
added.

bp tls-via-certmonger

Change-Id: I17c4b7041e16da6489f4b713fdeb28a6e1c5563c
Depends-On: I88e5ea7b9bbf35ae03f84fdc3ec76ae09f11a1b6

manifests/profile/base/heat/api.pp
manifests/profile/base/heat/api_cfn.pp
manifests/profile/base/heat/api_cloudwatch.pp
releasenotes/notes/deploy-heat-APIs-over-httpd-46b111d0a4a4eed4.yaml [new file with mode: 0644]

index b68abad..9ffba9c 100644 (file)
@@ -77,17 +77,10 @@ class tripleo::profile::base::heat::api (
   }
 
   if $step >= 4 {
-    class { '::heat::api':
-      service_name => 'httpd',  # TODO cleanup when this is passed by t-h-t.
-    }
-
+    include ::heat::api
     class { '::heat::wsgi::apache_api':
-      ssl_cert   => $tls_certfile,
-      ssl_key    => $tls_keyfile,
-      # TODO: The following are temporary and will be passed via t-h-t
-      ssl        => $enable_internal_tls,
-      servername => hiera("fqdn_${heat_api_network}"),
-      bind_host  => hiera('heat::api::bind_host'),
+      ssl_cert => $tls_certfile,
+      ssl_key  => $tls_keyfile,
     }
   }
 }
index c7ff5d1..987d3b2 100644 (file)
@@ -77,17 +77,11 @@ class tripleo::profile::base::heat::api_cfn (
   }
 
   if $step >= 4 {
-    class { '::heat::api_cfn':
-      service_name => 'httpd',  # TODO cleanup when this is passed by t-h-t.
-    }
+    include ::heat::api_cfn
 
     class { '::heat::wsgi::apache_api_cfn':
-      ssl_cert   => $tls_certfile,
-      ssl_key    => $tls_keyfile,
-      # TODO: The following are temporary and will be passed via t-h-t
-      ssl        => $enable_internal_tls,
-      servername => hiera("fqdn_${heat_api_cfn_network}"),
-      bind_host  => hiera('heat::api_cfn::bind_host'),
+      ssl_cert => $tls_certfile,
+      ssl_key  => $tls_keyfile,
     }
   }
 }
index 59535ce..4dd2607 100644 (file)
@@ -77,17 +77,11 @@ class tripleo::profile::base::heat::api_cloudwatch (
   }
 
   if $step >= 4 {
-    class { '::heat::api_cloudwatch':
-      service_name => 'httpd',  # TODO cleanup when this is passed by t-h-t.
-    }
+    include ::heat::api_cloudwatch
 
     class { '::heat::wsgi::apache_api_cloudwatch':
-      ssl_cert   => $tls_certfile,
-      ssl_key    => $tls_keyfile,
-      # TODO: The following are temporary and will be passed via t-h-t
-      ssl        => $enable_internal_tls,
-      servername => hiera("fqdn_${heat_api_cloudwatch_network}"),
-      bind_host  => hiera('heat::api_cloudwatch::bind_host'),
+      ssl_cert => $tls_certfile,
+      ssl_key  => $tls_keyfile,
     }
   }
 }
diff --git a/releasenotes/notes/deploy-heat-APIs-over-httpd-46b111d0a4a4eed4.yaml b/releasenotes/notes/deploy-heat-APIs-over-httpd-46b111d0a4a4eed4.yaml
new file mode 100644 (file)
index 0000000..a50a27d
--- /dev/null
@@ -0,0 +1,3 @@
+---
+features:
+  - Heat APIs (api, cfn and cloudwatch) are now deployed over httpd.