@@ -66,51 +66,51 @@ function config_dashboard {
66
66
67
67
function config_blazar_dashboard {
68
68
for file in ${SITE_PACKAGES} /blazar_dashboard/enabled/_* [^__].py; do
69
- config_dashboard " ${ENABLE_BLAZAR} " \
69
+ config_dashboard " ${ENABLE_BLAZAR:- no } " \
70
70
" ${SITE_PACKAGES} /blazar_dashboard/enabled/${file##*/ } " \
71
71
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
72
72
done
73
73
}
74
74
75
75
function config_cloudkitty_dashboard {
76
76
for file in ${SITE_PACKAGES} /cloudkittydashboard/enabled/_* [^__].py; do
77
- config_dashboard " ${ENABLE_CLOUDKITTY} " \
77
+ config_dashboard " ${ENABLE_CLOUDKITTY:- no } " \
78
78
" ${SITE_PACKAGES} /cloudkittydashboard/enabled/${file##*/ } " \
79
79
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
80
80
done
81
81
}
82
82
83
83
function config_designate_dashboard {
84
84
for file in ${SITE_PACKAGES} /designatedashboard/enabled/_* [^__].py; do
85
- config_dashboard " ${ENABLE_DESIGNATE} " \
85
+ config_dashboard " ${ENABLE_DESIGNATE:- no } " \
86
86
" ${SITE_PACKAGES} /designatedashboard/enabled/${file##*/ } " \
87
87
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
88
88
done
89
89
}
90
90
91
91
function config_freezer_ui {
92
92
for file in ${SITE_PACKAGES} /disaster_recovery/enabled/_* [^__].py; do
93
- config_dashboard " ${ENABLE_FREEZER} " \
93
+ config_dashboard " ${ENABLE_FREEZER:- no } " \
94
94
" ${SITE_PACKAGES} /disaster_recovery/enabled/${file##*/ } " \
95
95
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
96
96
done
97
97
}
98
98
99
99
function config_heat_dashboard {
100
100
for file in ${SITE_PACKAGES} /heat_dashboard/enabled/_* [^__].py; do
101
- config_dashboard " ${ENABLE_HEAT} " \
101
+ config_dashboard " ${ENABLE_HEAT:- no } " \
102
102
" ${SITE_PACKAGES} /heat_dashboard/enabled/${file##*/ } " \
103
103
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
104
104
done
105
105
106
- config_dashboard " ${ENABLE_HEAT} " \
106
+ config_dashboard " ${ENABLE_HEAT:- no } " \
107
107
" ${SITE_PACKAGES} /heat_dashboard/conf/heat_policy.json" \
108
108
" /etc/openstack-dashboard/heat_policy.json"
109
109
}
110
110
111
111
function config_ironic_dashboard {
112
112
for file in ${SITE_PACKAGES} /ironic_ui/enabled/_* [^__].py; do
113
- config_dashboard " ${ENABLE_IRONIC} " \
113
+ config_dashboard " ${ENABLE_IRONIC:- no } " \
114
114
" ${SITE_PACKAGES} /ironic_ui/enabled/${file##*/ } " \
115
115
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
116
116
done
@@ -126,72 +126,72 @@ function config_karbor_dashboard {
126
126
127
127
function config_magnum_dashboard {
128
128
for file in ${SITE_PACKAGES} /magnum_ui/enabled/_* [^__].py; do
129
- config_dashboard " ${ENABLE_MAGNUM} " \
129
+ config_dashboard " ${ENABLE_MAGNUM:- no } " \
130
130
" ${SITE_PACKAGES} /magnum_ui/enabled/${file##*/ } " \
131
131
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
132
132
done
133
133
}
134
134
135
135
function config_manila_ui {
136
136
for file in ${SITE_PACKAGES} /manila_ui/local/enabled/_* [^__].py; do
137
- config_dashboard " ${ENABLE_MANILA} " \
137
+ config_dashboard " ${ENABLE_MANILA:- no } " \
138
138
" ${SITE_PACKAGES} /manila_ui/local/enabled/${file##*/ } " \
139
139
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
140
140
done
141
141
}
142
142
143
143
function config_masakari_dashboard {
144
144
for file in ${SITE_PACKAGES} /masakaridashboard/local/enabled/_* [^__].py; do
145
- config_dashboard " ${ENABLE_MASAKARI} " \
145
+ config_dashboard " ${ENABLE_MASAKARI:- no } " \
146
146
" ${SITE_PACKAGES} /masakaridashboard/local/enabled/${file##*/ } " \
147
147
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
148
148
done
149
- config_dashboard " ${ENABLE_MASAKARI} " \
149
+ config_dashboard " ${ENABLE_MASAKARI:- no } " \
150
150
" ${SITE_PACKAGES} /masakaridashboard/conf/masakari_policy.json" \
151
151
" /etc/openstack-dashboard/masakari_policy.json"
152
- config_dashboard " ${ENABLE_MASAKARI} " \
152
+ config_dashboard " ${ENABLE_MASAKARI:- no } " \
153
153
" ${SITE_PACKAGES} /masakaridashboard/local/local_settings.d/_50_masakari.py" \
154
154
" ${SITE_PACKAGES} /openstack_dashboard/local/local_settings.d/_50_masakari.py"
155
155
}
156
156
157
157
function config_monasca_ui {
158
- config_dashboard " ${ENABLE_MONASCA} " \
158
+ config_dashboard " ${ENABLE_MONASCA:- no } " \
159
159
" ${SITE_PACKAGES} /monitoring/enabled/_50_admin_add_monitoring_panel.py" \
160
160
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/_50_admin_add_monitoring_panel.py"
161
- config_dashboard " ${ENABLE_MONASCA} " \
161
+ config_dashboard " ${ENABLE_MONASCA:- no } " \
162
162
" ${SITE_PACKAGES} /monitoring/conf/monitoring_policy.json" \
163
163
" ${SITE_PACKAGES} /openstack_dashboard/conf/monitoring_policy.json"
164
164
}
165
165
166
166
function config_murano_dashboard {
167
167
for file in ${SITE_PACKAGES} /muranodashboard/local/enabled/_* [^__].py; do
168
- config_dashboard " ${ENABLE_MURANO} " \
168
+ config_dashboard " ${ENABLE_MURANO:- no } " \
169
169
" ${SITE_PACKAGES} /muranodashboard/local/enabled/${file##*/ } " \
170
170
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
171
171
done
172
- config_dashboard " ${ENABLE_MURANO} " \
172
+ config_dashboard " ${ENABLE_MURANO:- no } " \
173
173
" ${SITE_PACKAGES} /muranodashboard/conf/murano_policy.json" \
174
174
" /etc/openstack-dashboard/murano_policy.json"
175
175
176
- config_dashboard " ${ENABLE_MURANO} " \
176
+ config_dashboard " ${ENABLE_MURANO:- no } " \
177
177
" ${SITE_PACKAGES} /muranodashboard/local/local_settings.d/_50_murano.py" \
178
178
" ${SITE_PACKAGES} /openstack_dashboard/local/local_settings.d/_50_murano.py"
179
179
}
180
180
181
181
function config_mistral_dashboard {
182
- config_dashboard " ${ENABLE_MISTRAL} " \
182
+ config_dashboard " ${ENABLE_MISTRAL:- no } " \
183
183
" ${SITE_PACKAGES} /mistraldashboard/enabled/_50_mistral.py" \
184
184
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/_50_mistral.py"
185
185
}
186
186
187
187
function config_neutron_vpnaas_dashboard {
188
- config_dashboard " ${ENABLE_NEUTRON_VPNAAS} " \
188
+ config_dashboard " ${ENABLE_NEUTRON_VPNAAS:- no } " \
189
189
" ${SITE_PACKAGES} /neutron_vpnaas_dashboard/enabled/_7100_project_vpn_panel.py" \
190
190
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/_7100_project_vpn_panel.py"
191
191
}
192
192
193
193
function config_octavia_dashboard {
194
- config_dashboard " ${ENABLE_OCTAVIA} " \
194
+ config_dashboard " ${ENABLE_OCTAVIA:- no } " \
195
195
" ${SITE_PACKAGES} /octavia_dashboard/enabled/_1482_project_load_balancer_panel.py" \
196
196
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/_1482_project_load_balancer_panel.py"
197
197
}
@@ -206,7 +206,7 @@ function config_qinling_dashboard {
206
206
207
207
function config_sahara_dashboard {
208
208
for file in ${SITE_PACKAGES} /sahara_dashboard/enabled/_* [^__].py; do
209
- config_dashboard " ${ENABLE_SAHARA} " \
209
+ config_dashboard " ${ENABLE_SAHARA:- no } " \
210
210
" ${SITE_PACKAGES} /sahara_dashboard/enabled/${file##*/ } " \
211
211
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
212
212
done
@@ -230,76 +230,71 @@ function config_searchlight_ui {
230
230
231
231
function config_senlin_dashboard {
232
232
for file in ${SITE_PACKAGES} /senlin_dashboard/enabled/_* [^__].py; do
233
- config_dashboard " ${ENABLE_SENLIN} " \
233
+ config_dashboard " ${ENABLE_SENLIN:- no } " \
234
234
" ${SITE_PACKAGES} /senlin_dashboard/enabled/${file##*/ } " \
235
235
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
236
236
done
237
237
238
- config_dashboard " ${ENABLE_SENLIN} " \
238
+ config_dashboard " ${ENABLE_SENLIN:- no } " \
239
239
" ${SITE_PACKAGES} /senlin_dashboard/conf/senlin_policy.json" \
240
240
" /etc/openstack-dashboard/senlin_policy.json"
241
241
}
242
242
243
243
function config_solum_dashboard {
244
244
for file in ${SITE_PACKAGES} /solumdashboard/local/enabled/_* [^__].py; do
245
- config_dashboard " ${ENABLE_SOLUM} " \
245
+ config_dashboard " ${ENABLE_SOLUM:- no } " \
246
246
" ${SITE_PACKAGES} /solumdashboard/local/enabled/${file##*/ } " \
247
247
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
248
248
done
249
249
}
250
250
251
251
function config_tacker_dashboard {
252
252
for file in ${SITE_PACKAGES} /tacker_horizon/enabled/_* [^__].py; do
253
- config_dashboard " ${ENABLE_TACKER} " \
253
+ config_dashboard " ${ENABLE_TACKER:- no } " \
254
254
" ${SITE_PACKAGES} /tacker_horizon/enabled/${file##*/ } " \
255
255
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
256
256
done
257
257
}
258
258
259
259
function config_trove_dashboard {
260
260
for file in ${SITE_PACKAGES} /trove_dashboard/enabled/_* [^__].py; do
261
- config_dashboard " ${ENABLE_TROVE} " \
261
+ config_dashboard " ${ENABLE_TROVE:- no } " \
262
262
" ${SITE_PACKAGES} /trove_dashboard/enabled/${file##*/ } " \
263
263
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
264
264
done
265
265
}
266
266
267
267
function config_vitrage_dashboard {
268
268
for file in ${SITE_PACKAGES} /vitrage_dashboard/enabled/_* [^__].py; do
269
- config_dashboard " ${ENABLE_VITRAGE} " \
269
+ config_dashboard " ${ENABLE_VITRAGE:- no } " \
270
270
" ${SITE_PACKAGES} /vitrage_dashboard/enabled/${file##*/ } " \
271
271
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
272
272
done
273
273
}
274
274
275
275
function config_watcher_dashboard {
276
276
for file in ${SITE_PACKAGES} /watcher_dashboard/local/enabled/_* [^__].py; do
277
- config_dashboard " ${ENABLE_WATCHER} " \
277
+ config_dashboard " ${ENABLE_WATCHER:- no } " \
278
278
" ${SITE_PACKAGES} /watcher_dashboard/local/enabled/${file##*/ } " \
279
279
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
280
280
done
281
281
282
- config_dashboard " ${ENABLE_WATCHER} " \
282
+ config_dashboard " ${ENABLE_WATCHER:- no } " \
283
283
" ${SITE_PACKAGES} /watcher_dashboard/conf/watcher_policy.json" \
284
284
" /etc/openstack-dashboard/watcher_policy.json"
285
285
}
286
286
287
287
function config_zaqar_dashboard {
288
- # NOTE(yoctozepto): Kolla-Ansible does not control Zaqar and therefore
289
- # does not set ENABLE_ZAQAR; the workaround below ensures it gets set to
290
- # `no` in that case to fix this code under `set -o nounset`.
291
- ENABLE_ZAQAR=${ENABLE_ZAQAR-no}
292
-
293
288
for file in ${SITE_PACKAGES} /zaqar_ui/enabled/_* [^__].py; do
294
- config_dashboard " ${ENABLE_ZAQAR} " \
289
+ config_dashboard " ${ENABLE_ZAQAR:- no } " \
295
290
" ${SITE_PACKAGES} /zaqar_ui/enabled/${file##*/ } " \
296
291
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
297
292
done
298
293
}
299
294
300
295
function config_zun_dashboard {
301
296
for file in ${SITE_PACKAGES} /zun_ui/enabled/_* [^__].py; do
302
- config_dashboard " ${ENABLE_ZUN} " \
297
+ config_dashboard " ${ENABLE_ZUN:- no } " \
303
298
" ${SITE_PACKAGES} /zun_ui/enabled/${file##*/ } " \
304
299
" ${SITE_PACKAGES} /openstack_dashboard/local/enabled/${file##*/ } "
305
300
done
0 commit comments