kayobe/ansible/roles/kolla-build/tasks/main.yml
Mark Goddard e318cadaa5 Use merge_configs and merge_yaml to generate Kolla configs
Supports merging configuration for the following files:

* kolla/globals.yml
* kolla/config/bifrost/bifrost.yml
* kolla/config/bifrost/dib.yml
* kolla/config/bifrost/servers.yml
* kolla/kolla-build.conf

Configuration is merged from the following sources:

* Kayobe source code
* Base Kayobe config
* Kayobe environment

Co-Authored-By: Will Szumski <will@stackhpc.com>
Change-Id: I552bd8f7853b2032954b372bf4476676dac3e271
Story: 2002009
Task: 42974
2021-10-08 09:08:45 +01:00

13 lines
444 B
YAML

---
- name: Ensure the Kolla build configuration file exists
merge_configs:
sources: "{{ kolla_build_config_paths | product(['/kolla/kolla-build.conf']) | map('join') | list }}"
dest: "{{ kolla_build_config_path }}/kolla-build.conf"
mode: 0644
- name: Ensure the Kolla build template overrides file exists
template:
src: template-override.j2.j2
dest: "{{ kolla_build_config_path }}/template-override.j2"
mode: 0644