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:
parent
a1c47c9aa3
commit
3888196334
@ -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 }}"
|
||||
|
6
ansible/roles/trove/templates/trove-guestagent.conf.j2
Normal file
6
ansible/roles/trove/templates/trove-guestagent.conf.j2
Normal 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 }}
|
@ -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 }}",
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
Add trove-guestagent.conf for trove
|
Loading…
Reference in New Issue
Block a user