Merge "Add trove-guestagent.conf"

This commit is contained in:
Zuul 2020-08-10 12:21:30 +00:00 committed by Gerrit Code Review
commit 8dfab9675c
4 changed files with 38 additions and 1 deletions

View File

@ -71,6 +71,27 @@
notify:
- "Restart {{ item.key }} container"
- name: Copying over trove-guestagent.conf
vars:
services_need_confs:
- trove-taskmanager
merge_configs:
sources:
- "{{ role_path }}/templates/trove-guestagent.conf.j2"
- "{{ node_custom_config }}/trove-guestagent.conf"
- "{{ node_custom_config }}/trove/trove-guestagent.conf"
- "{{ node_custom_config }}/trove/{{ inventory_hostname }}/trove-guestagent.conf"
dest: "{{ node_config_directory }}/{{ item.key }}/trove-guestagent.conf"
mode: "0660"
become: true
when:
- item.key in services_need_confs
- inventory_hostname in groups[item.value.group]
- item.value.enabled | bool
with_dict: "{{ trove_services }}"
notify:
- "Restart {{ item.key }} container"
- name: Copying over trove.conf
vars:
service_name: "{{ item.key }}"

View File

@ -0,0 +1,6 @@
[DEFAULT]
transport_url = {{ rpc_transport_url }}
control_exchange = trove
root_grant = ALL
root_grant_option = True
debug = {{ trove_logging_debug }}

View File

@ -6,7 +6,13 @@
"dest": "/etc/trove/trove-taskmanager.conf",
"owner": "trove",
"perm": "0600"
}{% if trove_policy_file is defined %},
},
{
"source": "{{ container_config_directory }}/trove-guestagent.conf",
"dest": "/etc/trove/trove-guestagent.conf",
"owner": "trove",
"perm": "0600"
}{% if trove_policy_file is defined %},
{
"source": "{{ container_config_directory }}/{{ trove_policy_file }}",
"dest": "/etc/trove/{{ trove_policy_file }}",

View File

@ -0,0 +1,4 @@
---
other:
- |
Add trove-guestagent.conf for trove