Merge "Karbor providers managed from deployment node"
This commit is contained in:
commit
5c68239f1c
@ -43,6 +43,7 @@
|
|||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
- config_json.changed | bool
|
- config_json.changed | bool
|
||||||
or karbor_conf.changed | bool
|
or karbor_conf.changed | bool
|
||||||
|
or providers_conf.changed
|
||||||
or openstack_infra_conf.changed | bool
|
or openstack_infra_conf.changed | bool
|
||||||
or karbor_protection_container.changed | bool
|
or karbor_protection_container.changed | bool
|
||||||
|
|
||||||
|
@ -51,12 +51,32 @@
|
|||||||
- Restart karbor-protection container
|
- Restart karbor-protection container
|
||||||
- Restart karbor-operationengine container
|
- Restart karbor-operationengine container
|
||||||
|
|
||||||
|
- name: Copying over provider configs
|
||||||
|
vars:
|
||||||
|
service_name: 'karbor-protection'
|
||||||
|
service: "{{ karbor_services[service_name] }}"
|
||||||
|
copy:
|
||||||
|
src: "{{ item }}"
|
||||||
|
dest: "{{ node_config_directory }}/{{ service_name }}/providers.d/"
|
||||||
|
mode: "0660"
|
||||||
|
become: true
|
||||||
|
with_fileglob:
|
||||||
|
- "{{ node_custom_config }}/karbor/{{ service_name }}/providers.d/*"
|
||||||
|
register: providers_conf
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups[service.group]
|
||||||
|
- service.enabled | bool
|
||||||
|
notify:
|
||||||
|
- Restart karbor-protection container
|
||||||
|
|
||||||
- name: Copying over openstack-infra.conf
|
- name: Copying over openstack-infra.conf
|
||||||
vars:
|
vars:
|
||||||
service_name: 'karbor-protection'
|
service_name: 'karbor-protection'
|
||||||
service: "{{ karbor_services[service_name] }}"
|
service: "{{ karbor_services[service_name] }}"
|
||||||
template:
|
merge_configs:
|
||||||
src: "providers.d/openstack-infra.conf.j2"
|
sources:
|
||||||
|
- "{{ role_path }}/templates/providers.d/openstack-infra.conf.j2"
|
||||||
|
- "{{ node_custom_config }}/karbor/{{ service_name }}/providers.d/openstack-infra.conf"
|
||||||
dest: "{{ node_config_directory }}/{{ service_name }}/providers.d/openstack-infra.conf"
|
dest: "{{ node_config_directory }}/{{ service_name }}/providers.d/openstack-infra.conf"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
become: true
|
become: true
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/providers.d/openstack-infra.conf",
|
"source": "{{ container_config_directory }}/providers.d/*",
|
||||||
"dest": "/etc/karbor/providers.d/openstack-infra.conf",
|
"dest": "/etc/karbor/providers.d/",
|
||||||
"owner": "karbor",
|
"owner": "karbor",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user