Browse Source

Add openstack-orchestration::dashboard recipe

Starting with Queens, upstream has moved the Orchestration (heat)
dashboard from the main dashboard package into a separate package.

backport: queens

Change-Id: Ifb2018623bd4df250c2d3d8c5a7473f6cff94fe8
Roger Luethi 6 months ago
parent
commit
dd41637548
2 changed files with 34 additions and 0 deletions
  1. 2
    0
      attributes/default.rb
  2. 32
    0
      recipes/dashboard.rb

+ 2
- 0
attributes/default.rb View File

@@ -63,6 +63,7 @@ when 'rhel'
63 63
   default['openstack']['orchestration']['platform'] = {
64 64
     'heat_common_packages' => ['openstack-heat-common'],
65 65
     'heat_api_packages' => ['openstack-heat-api'],
66
+    'heat_dashboard_packages' => ['openstack-heat-ui'],
66 67
     'heat_api_service' => 'openstack-heat-api',
67 68
     'heat_api_cfn_packages' => ['openstack-heat-api-cfn'],
68 69
     'heat_api_cfn_service' => 'openstack-heat-api-cfn',
@@ -77,6 +78,7 @@ when 'debian'
77 78
   default['openstack']['orchestration']['platform'] = {
78 79
     'heat_common_packages' => ['heat-common'],
79 80
     'heat_api_packages' => ['heat-api'],
81
+    'heat_dashboard_packages' => ['python-heat-dashboard'],
80 82
     'heat_api_service' => 'heat-api',
81 83
     'heat_api_cfn_packages' => ['heat-api-cfn'],
82 84
     'heat_api_cfn_service' => 'heat-api-cfn',

+ 32
- 0
recipes/dashboard.rb View File

@@ -0,0 +1,32 @@
1
+# encoding: UTF-8
2
+#
3
+# Cookbook Name:: openstack-orchestration
4
+# Recipe:: dashboard
5
+#
6
+# Copyright 2018, x-ion Gmbh
7
+#
8
+# Licensed under the Apache License, Version 2.0 (the "License");
9
+# you may not use this file except in compliance with the License.
10
+# You may obtain a copy of the License at
11
+#
12
+#     http://www.apache.org/licenses/LICENSE-2.0
13
+#
14
+# Unless required by applicable law or agreed to in writing, software
15
+# distributed under the License is distributed on an "AS IS" BASIS,
16
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+# See the License for the specific language governing permissions and
18
+# limitations under the License.
19
+#
20
+
21
+class ::Chef::Recipe
22
+  include ::Openstack
23
+end
24
+
25
+platform_options = node['openstack']['orchestration']['platform']
26
+
27
+platform_options['heat_dashboard_packages'].each do |pkg|
28
+  package pkg do
29
+    options platform_options['package_overrides']
30
+    action :upgrade
31
+  end
32
+end

Loading…
Cancel
Save