enable global index

change the policy.json file to enable
to see all stacks

Change-Id: I5fd0639e8f7e3be031ca5ecb729d06a1b44487d2
This commit is contained in:
Eyal 2017-11-05 15:11:08 +02:00
parent 6bd6c2e053
commit c8e4500fc0

View File

@ -346,6 +346,14 @@ function stop_vitrage {
done done
} }
function modify_heat_global_index_policy_rule {
if is_service_enabled heat; then
local policy_file=$HEAT_CONF_DIR/policy.json
# Allow to list all stacks
sed -i 's/"stacks:global_index": "rule:deny_everybody"/"stacks:global_index": "rule:deny_stack_user"/' $policy_file
fi
}
# This is the main for plugin.sh # This is the main for plugin.sh
if is_service_enabled vitrage; then if is_service_enabled vitrage; then
if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then if [[ "$1" == "stack" && "$2" == "pre-install" ]]; then
@ -361,6 +369,8 @@ if is_service_enabled vitrage; then
configure_vitrage configure_vitrage
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Vitrage" echo_summary "Initializing Vitrage"
# enable global index
modify_heat_global_index_policy_rule
# Tidy base for vitrage # Tidy base for vitrage
init_vitrage init_vitrage
# Start the services # Start the services