tripleo-heat-templates/tools
Lance Bragstad c9635bf92e Implement a tool for converting policy.yaml files to heat templates
This commit adds a tool that parses a directory of service.yaml policy
files and then converts them to the appropriate THT structure, using the
necessary service variables and templating.

The enable-secure-rbac.yaml is simply the current defaults generated
from code. First, generate all the policy files for each OpenStack
service:

  $ oslopolicy-sample-generator --namespace $SERVICE --output-file $DEST/$SERVICE.yaml

Next, uncomment all the default policies as a starting point for making
policy changes:

  $ sed -i 's/^#"/"/g' $DEST/$SERVICE.yaml

Next you can make changes to the policy files to reflect the changes you
want in your deployment.

Finally, you can generate the necessary heat template:

  $ ./convert_policy_yaml_to_heat_template.py -d $DEST

The tool outputs to stdout. It's up to the user to redirect to a file if
they wish to save results.

The enable-secure-rbac.yaml environment will be updated in subsequent
patches to implement project personas.

Change-Id: I9957243d307758f56b84cde3a408006d8161fa41
2021-09-28 13:33:53 +00:00
..
tests Use 'wallaby' heat_template_version 2021-03-31 17:35:12 +05:30
__init__.py tool: convert heat network-config to ansible j2 2020-12-18 07:26:01 +01:00
check-up-to-date.sh Make krb-service-principal metadata per-Role 2019-04-05 14:22:20 +00:00
convert_heat_nic_config_to_ansible_j2.py Close if block in dual bonds 2021-03-17 23:50:36 +01:00
convert_nic_config.py Fix convert_nic_config.py script 2020-11-18 10:45:30 +05:30
convert_policy_yaml_to_heat_template.py Implement a tool for converting policy.yaml files to heat templates 2021-09-28 13:33:53 +00:00
convert_v1_net_data.py Add tool to convert net-data from v1 to v2 2021-07-12 10:40:16 -05:00
make_ceph_disk_list.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
merge-new-params-nic-config-script.py Use merge strategy for EndpointMap 2021-06-15 09:15:41 +05:30
process-templates.py Replace unused var 'net' with _ 2021-05-20 23:49:15 +02:00
releasenotes_tox.sh tox: Keeping going with docs 2019-11-03 02:44:38 +08:00
render-ansible-tasks.py Use yaml.safe_load to load YAML files 2021-07-24 12:08:22 +09:00
roles-data-generate-samples.sh Add in roles data validation 2017-07-07 09:51:40 -06:00
roles-data-generate.py Use python3 in tools scripts 2020-04-29 09:23:36 +02:00
roles-data-validation.sh Remove fluentd composable service 2019-08-29 13:52:55 +01:00
yaml-diff.py Adding json output to yaml-diff 2021-09-06 12:53:41 +00:00
yaml-validate.py Use yaml.safe_load to load YAML files 2021-07-24 12:08:22 +09:00