kayobe/tools/kolla-feature-flags.sh
Mark Goddard b7287ec586 [release] add kolla feature flag sync scripts and update docs
Adds a script for syncing feature flags from Kolla Ansible, and updates
the release docs to include this step. Also adds the inventory sync
step.

Change-Id: Id2bd48897d6b37a5006bad7f6e8597db20aa1b8b
2021-04-23 17:16:20 +01:00

22 lines
639 B
Bash
Executable File

#!/bin/bash
# This script generates a list of Kolla Ansible feature flags to use as the
# kolla_feature_flags variable in ansible/roles/kolla-ansible/vars/main.yml.
# It should be run periodically and before a release.
# See also: tools/feature-flags.py
set -e
set -o pipefail
KOLLA_ANSIBLE_SRC=$1
KOLLA_GROUP_VARS_ALL=${KOLLA_ANSIBLE_SRC}/ansible/group_vars/all.yml
if [[ ! -f $KOLLA_GROUP_VARS_ALL ]]; then
echo "Usage: $0 <path to kolla-ansible source>"
exit 1
fi
# Find all feature flags, strip the enable_ prefix and value, sort.
cat ${KOLLA_GROUP_VARS_ALL} | grep '^enable_'| sed -e 's/enable_\(.*\):.*/ - \1/' | sort