- When developing an APB with an existing template, keep parameters the same as the template.
- All end-user parameter defaults should be defined in apb.yml.
- All parameter defaults defined in nested directories (e.g.
roles/provision/defaults/main.yml) should be considered application constants that the end-user is not expected to alter. These are values that are proliferated throughout the playbook but are not exposed to the end-user. - Keep it simple
- Do not use jinja2-style template files unless absolutely necessary
- Use a common set of kubernetes/openshift resources where the state is parameterized based on provision or deprovision playbook.
- All APBs should have a standard test entrypoint. Options include:
- Makefile, e.g.
make test - test playbook
playbooks/test.yml
- Makefile, e.g.
- The local test should provide user-defined defaults of params defined in apb.yml. This helps ensure testing is using the user-defined params that would be provided in apb.yml.