kayobe/tools/feature-flags.py
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

19 lines
446 B
Python
Executable File

#!/usr/bin/env python3
# Usage: run this script and copy the output to etc/kayobe/kolla.yml
# See also: tools/kolla-feature-flags.sh
import os
import pathlib
import yaml
script_dir = pathlib.Path(__file__).parent.absolute()
path = os.path.join(script_dir, "../ansible/roles/kolla-ansible/vars/main.yml")
with open(path) as f:
vars = yaml.safe_load(f)
for key in vars["kolla_feature_flags"]:
print("#kolla_enable_%s:" % key)