Add zaqar profiles
authorBrad P. Crochet <brad@redhat.com>
Fri, 10 Jun 2016 13:02:51 +0000 (09:02 -0400)
committerBrad P. Crochet <brad@redhat.com>
Mon, 17 Oct 2016 11:07:20 +0000 (07:07 -0400)
Change-Id: Ie215289a7be681a2b1aa5495d3f965c005d62f52
Depends-On: Ia863b38bbac1aceabe6b7deb6939c9db693ff16d

manifests/profile/base/keystone.pp
manifests/profile/base/zaqar.pp [new file with mode: 0644]

index 846296e..8c181e0 100644 (file)
@@ -148,6 +148,10 @@ class tripleo::profile::base::keystone (
     if hiera('trove_api_enabled', false) {
       include ::trove::keystone::auth
     }
+    if hiera('zaqar_enabled', false) {
+      include ::zaqar::keystone::auth
+      include ::zaqar::keystone::auth_websocket
+    }
   }
 }
 
diff --git a/manifests/profile/base/zaqar.pp b/manifests/profile/base/zaqar.pp
new file mode 100644 (file)
index 0000000..6794742
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 2016 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+#
+# == Class: tripleo::profile::base::zaqar
+#
+# Zaqar profile for tripleo
+#
+# === Parameters
+#
+# [*sync_db*]
+#   (Optional) Whether to run db sync
+#   Defaults to true
+#
+# [*step*]
+#   (Optional) The current step in deployment. See tripleo-heat-templates
+#   for more details.
+#   Defaults to hiera('step')
+#
+class tripleo::profile::base::zaqar (
+  $step             = hiera('step'),
+) {
+  if $step >= 4  {
+    include ::zaqar
+    include ::zaqar::management::mongodb
+    include ::zaqar::messaging::mongodb
+    include ::zaqar::transport::websocket
+    include ::zaqar::transport::wsgi
+
+    # TODO (bcrochet): At some point, the transports should be split out to
+    # seperate services.
+    include ::zaqar::server
+    zaqar::server_instance{ '1':
+      transport => 'websocket'
+    }
+  }
+}
+