Add trove-guestagent.conf

Add trove-guestagent.conf templates for trove-guestagent service.
Default the Guest Agent config file to be injected during instance creation.

Change-Id: Id0750b84fef8e19658b27f8ae16a857e1394216e
This commit is contained in:
likui 2020-06-26 10:05:50 +08:00
parent a1c47c9aa3
commit 3888196334
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