UI profile for tripleo
authorMartin André <m.andre@redhat.com>
Fri, 12 Aug 2016 10:10:09 +0000 (12:10 +0200)
committerMartin André <m.andre@redhat.com>
Fri, 26 Aug 2016 14:42:48 +0000 (16:42 +0200)
The new tripleo::profile::base::ui profile installs the
openstack-tripleo-ui RPM package and setup CORS for required services.

Change-Id: Ib9d8643da3f51171495fcb8b64d1a7ca86cd66bc

manifests/profile/base/heat.pp
manifests/profile/base/ironic.pp
manifests/profile/base/keystone.pp
manifests/profile/base/mistral.pp
manifests/profile/base/ui.pp [new file with mode: 0644]

index dcf0f21..cafe95e 100644 (file)
@@ -56,6 +56,7 @@ class tripleo::profile::base::heat (
       notification_driver => $notification_driver,
     }
     include ::heat::config
+    include ::heat::cors
   }
 
   if $step >= 5 {
index f098d37..da89839 100644 (file)
@@ -45,5 +45,7 @@ class tripleo::profile::base::ironic (
     class { '::ironic':
       sync_db => $sync_db,
     }
+
+    include ::ironic::cors
   }
 }
index d8c8e24..ac97b66 100644 (file)
@@ -58,6 +58,7 @@ class tripleo::profile::base::keystone (
 
     include ::keystone::config
     include ::keystone::wsgi::apache
+    include ::keystone::cors
 
     if $manage_roles {
       include ::keystone::roles::admin
index 0c41193..cffb03e 100644 (file)
@@ -46,5 +46,6 @@ class tripleo::profile::base::mistral (
     include ::mistral::config
     include ::mistral::client
     include ::mistral::db::sync
+    include ::mistral::cors
   }
 }
diff --git a/manifests/profile/base/ui.pp b/manifests/profile/base/ui.pp
new file mode 100644 (file)
index 0000000..22371d1
--- /dev/null
@@ -0,0 +1,24 @@
+# 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::ui
+#
+# UI profile for tripleo
+#
+class tripleo::profile::base::ui () {
+  package {'openstack-tripleo-ui': }
+
+  include ::apache
+}
+