kolla-ansible/ansible/roles/murano/tasks/config.yml
Sam Yaple 0cc328c625 Replace config-external - murano
Change-Id: I8c5fdb2f2d3284960318a8189c4cc5bd6a8e59e9
Partially-Implements: blueprint replace-config-external
2015-09-25 11:06:42 +00:00

53 lines
2.6 KiB
YAML

---
- include: ../../config.yml
vars:
service_name: "murano-engine"
config_source:
- "roles/{{ project_name }}/templates/murano.conf.j2"
- "/etc/kolla/config/global.conf"
- "/etc/kolla/config/database.conf"
- "/etc/kolla/config/messaging.conf"
- "/etc/kolla/config/{{ project_name }}.conf"
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
config_template_dest:
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
config_dest: "{{ node_config_directory }}/{{ service_name }}/murano.conf"
when: inventory_hostname in groups['murano-engine']
- name: Copying over murano-engine JSON configuration file
template:
src: "murano-engine.json.j2"
dest: "{{ node_config_directory }}/murano-engine/config.json"
when: inventory_hostname in groups['murano-engine']
- include: ../../config.yml
vars:
service_name: "murano-api"
config_source:
- "roles/{{ project_name }}/templates/murano.conf.j2"
- "/etc/kolla/config/global.conf"
- "/etc/kolla/config/database.conf"
- "/etc/kolla/config/messaging.conf"
- "/etc/kolla/config/{{ project_name }}.conf"
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
config_template_dest:
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
config_dest: "{{ node_config_directory }}/{{ service_name }}/murano.conf"
when: inventory_hostname in groups['murano-api']
- name: Copying over murano-api JSON configuration file
template:
src: "murano-api.json.j2"
dest: "{{ node_config_directory }}/murano-api/config.json"
when: inventory_hostname in groups['murano-api']