b7287ec586
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
19 lines
446 B
Python
Executable File
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)
|