Merge "Copy certifications info octavia housekeeping and health manager container"
This commit is contained in:
commit
39a2b59056
@ -39,6 +39,7 @@
|
|||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
- config_json.changed | bool
|
- config_json.changed | bool
|
||||||
or octavia_conf.changed | bool
|
or octavia_conf.changed | bool
|
||||||
|
or octavia_health_manager_certificate.changed | bool
|
||||||
or octavia_health_manager_container.changed | bool
|
or octavia_health_manager_container.changed | bool
|
||||||
|
|
||||||
- name: Restart octavia-housekeeping container
|
- name: Restart octavia-housekeeping container
|
||||||
@ -60,6 +61,7 @@
|
|||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
- config_json.changed | bool
|
- config_json.changed | bool
|
||||||
or octavia_conf.changed | bool
|
or octavia_conf.changed | bool
|
||||||
|
or octavia_housekeeping_certificate.changed | bool
|
||||||
or octavia_housekeeping_container.changed | bool
|
or octavia_housekeeping_container.changed | bool
|
||||||
|
|
||||||
- name: Restart octavia-worker container
|
- name: Restart octavia-worker container
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
notify:
|
notify:
|
||||||
- "Restart {{ item.key }} container"
|
- "Restart {{ item.key }} container"
|
||||||
|
|
||||||
- name: Copying certificate files
|
- name: Copying certificate files for octavia-worker
|
||||||
vars:
|
vars:
|
||||||
service: "{{ octavia_services['octavia-worker'] }}"
|
service: "{{ octavia_services['octavia-worker'] }}"
|
||||||
copy:
|
copy:
|
||||||
@ -57,6 +57,40 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart octavia-worker container
|
- Restart octavia-worker container
|
||||||
|
|
||||||
|
- name: Copying certificate files for octavia-housekeeping
|
||||||
|
vars:
|
||||||
|
service: "{{ octavia_services['octavia-housekeeping'] }}"
|
||||||
|
copy:
|
||||||
|
src: "{{ node_custom_config }}/octavia/{{ item }}"
|
||||||
|
dest: "{{ node_config_directory }}/octavia-housekeeping/{{ item }}"
|
||||||
|
register: octavia_housekeeping_certificate
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups[service.group]
|
||||||
|
- service.enabled | bool
|
||||||
|
with_items:
|
||||||
|
- cakey.pem
|
||||||
|
- ca_01.pem
|
||||||
|
- client.pem
|
||||||
|
notify:
|
||||||
|
- Restart octavia-housekeeping container
|
||||||
|
|
||||||
|
- name: Copying certificate files for octavia-health-manager
|
||||||
|
vars:
|
||||||
|
service: "{{ octavia_services['octavia-health-manager'] }}"
|
||||||
|
copy:
|
||||||
|
src: "{{ node_custom_config }}/octavia/{{ item }}"
|
||||||
|
dest: "{{ node_config_directory }}/octavia-health-manager/{{ item }}"
|
||||||
|
register: octavia_health_manager_certificate
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups[service.group]
|
||||||
|
- service.enabled | bool
|
||||||
|
with_items:
|
||||||
|
- cakey.pem
|
||||||
|
- ca_01.pem
|
||||||
|
- client.pem
|
||||||
|
notify:
|
||||||
|
- Restart octavia-health-manager container
|
||||||
|
|
||||||
- name: Check octavia containers
|
- name: Check octavia containers
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
action: "compare_container"
|
action: "compare_container"
|
||||||
|
@ -6,6 +6,24 @@
|
|||||||
"dest": "/etc/octavia/octavia.conf",
|
"dest": "/etc/octavia/octavia.conf",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/cakey.pem",
|
||||||
|
"dest": "/etc/octavia/certs/private/cakey.pem",
|
||||||
|
"owner": "octavia",
|
||||||
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/ca_01.pem",
|
||||||
|
"dest": "/etc/octavia/certs/ca_01.pem",
|
||||||
|
"owner": "octavia",
|
||||||
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/client.pem",
|
||||||
|
"dest": "/etc/octavia/certs/client.pem",
|
||||||
|
"owner": "octavia",
|
||||||
|
"perm": "0600"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,24 @@
|
|||||||
"dest": "/etc/octavia/octavia.conf",
|
"dest": "/etc/octavia/octavia.conf",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/cakey.pem",
|
||||||
|
"dest": "/etc/octavia/certs/private/cakey.pem",
|
||||||
|
"owner": "octavia",
|
||||||
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/ca_01.pem",
|
||||||
|
"dest": "/etc/octavia/certs/ca_01.pem",
|
||||||
|
"owner": "octavia",
|
||||||
|
"perm": "0600"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"source": "{{ container_config_directory }}/client.pem",
|
||||||
|
"dest": "/etc/octavia/certs/client.pem",
|
||||||
|
"owner": "octavia",
|
||||||
|
"perm": "0600"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user