Merge "octavia: Add support for disabling amphora provider"
This commit is contained in:
commit
09fcfe8cd2
@ -100,6 +100,8 @@
|
|||||||
notify:
|
notify:
|
||||||
- "Restart {{ item.key }} container"
|
- "Restart {{ item.key }} container"
|
||||||
|
|
||||||
|
- block:
|
||||||
|
|
||||||
- name: Copying over Octavia SSH key
|
- name: Copying over Octavia SSH key
|
||||||
copy:
|
copy:
|
||||||
content: "{{ octavia_amp_ssh_key.private_key }}"
|
content: "{{ octavia_amp_ssh_key.private_key }}"
|
||||||
@ -121,11 +123,7 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups[service.group]
|
- inventory_hostname in groups[service.group]
|
||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
with_items:
|
with_items: "{{ octavia_amphora_keys }}"
|
||||||
- client.cert-and-key.pem
|
|
||||||
- client_ca.cert.pem
|
|
||||||
- server_ca.cert.pem
|
|
||||||
- server_ca.key.pem
|
|
||||||
notify:
|
notify:
|
||||||
- Restart octavia-worker container
|
- Restart octavia-worker container
|
||||||
|
|
||||||
@ -140,11 +138,7 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups[service.group]
|
- inventory_hostname in groups[service.group]
|
||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
with_items:
|
with_items: "{{ octavia_amphora_keys }}"
|
||||||
- client.cert-and-key.pem
|
|
||||||
- client_ca.cert.pem
|
|
||||||
- server_ca.cert.pem
|
|
||||||
- server_ca.key.pem
|
|
||||||
notify:
|
notify:
|
||||||
- Restart octavia-housekeeping container
|
- Restart octavia-housekeeping container
|
||||||
|
|
||||||
@ -159,10 +153,14 @@
|
|||||||
when:
|
when:
|
||||||
- inventory_hostname in groups[service.group]
|
- inventory_hostname in groups[service.group]
|
||||||
- service.enabled | bool
|
- service.enabled | bool
|
||||||
with_items:
|
with_items: "{{ octavia_amphora_keys }}"
|
||||||
|
notify:
|
||||||
|
- Restart octavia-health-manager container
|
||||||
|
|
||||||
|
when: "'amphora' in octavia_provider_drivers"
|
||||||
|
vars:
|
||||||
|
octavia_amphora_keys:
|
||||||
- client.cert-and-key.pem
|
- client.cert-and-key.pem
|
||||||
- client_ca.cert.pem
|
- client_ca.cert.pem
|
||||||
- server_ca.cert.pem
|
- server_ca.cert.pem
|
||||||
- server_ca.key.pem
|
- server_ca.key.pem
|
||||||
notify:
|
|
||||||
- Restart octavia-health-manager container
|
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
Octavia's certificate configuration has been changed since Train. The new
|
Octavia's certificate configuration has been changed since Train. The new
|
||||||
configuration requires 4 PEM files. Please check certificate configuration
|
configuration requires 4 PEM files. Please check certificate configuration
|
||||||
guide at https://docs.openstack.org/octavia/latest/admin/guides/certificates.html
|
guide at https://docs.openstack.org/octavia/latest/admin/guides/certificates.html
|
||||||
|
when: "'amphora' in octavia_provider_drivers"
|
||||||
|
|
||||||
- name: Checking certificate files exist for octavia
|
- name: Checking certificate files exist for octavia
|
||||||
stat:
|
stat:
|
||||||
@ -49,7 +50,9 @@
|
|||||||
run_once: True
|
run_once: True
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.stat.exists
|
failed_when: not result.stat.exists
|
||||||
when: inventory_hostname in groups['octavia-worker']
|
when:
|
||||||
|
- inventory_hostname in groups['octavia-worker']
|
||||||
|
- "'amphora' in octavia_provider_drivers"
|
||||||
with_items:
|
with_items:
|
||||||
- client.cert-and-key.pem
|
- client.cert-and-key.pem
|
||||||
- client_ca.cert.pem
|
- client_ca.cert.pem
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"dest": "/etc/octavia/octavia.conf",
|
"dest": "/etc/octavia/octavia.conf",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
},
|
}{% if 'amphora' in octavia_provider_drivers %},
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/client.cert-and-key.pem",
|
"source": "{{ container_config_directory }}/client.cert-and-key.pem",
|
||||||
"dest": "/etc/octavia/certs/client.cert-and-key.pem",
|
"dest": "/etc/octavia/certs/client.cert-and-key.pem",
|
||||||
@ -30,6 +30,6 @@
|
|||||||
"dest": "/etc/octavia/certs/server_ca.key.pem",
|
"dest": "/etc/octavia/certs/server_ca.key.pem",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
}
|
}{% endif %}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"dest": "/etc/octavia/octavia.conf",
|
"dest": "/etc/octavia/octavia.conf",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
},
|
}{% if 'amphora' in octavia_provider_drivers %},
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/client.cert-and-key.pem",
|
"source": "{{ container_config_directory }}/client.cert-and-key.pem",
|
||||||
"dest": "/etc/octavia/certs/client.cert-and-key.pem",
|
"dest": "/etc/octavia/certs/client.cert-and-key.pem",
|
||||||
@ -30,6 +30,6 @@
|
|||||||
"dest": "/etc/octavia/certs/server_ca.key.pem",
|
"dest": "/etc/octavia/certs/server_ca.key.pem",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
}
|
}{% endif %}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"dest": "/etc/octavia/octavia.conf",
|
"dest": "/etc/octavia/octavia.conf",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
},
|
}{% if 'amphora' in octavia_provider_drivers %},
|
||||||
{
|
{
|
||||||
"source": "{{ container_config_directory }}/client.cert-and-key.pem",
|
"source": "{{ container_config_directory }}/client.cert-and-key.pem",
|
||||||
"dest": "/etc/octavia/certs/client.cert-and-key.pem",
|
"dest": "/etc/octavia/certs/client.cert-and-key.pem",
|
||||||
@ -30,6 +30,6 @@
|
|||||||
"dest": "/etc/octavia/certs/server_ca.key.pem",
|
"dest": "/etc/octavia/certs/server_ca.key.pem",
|
||||||
"owner": "octavia",
|
"owner": "octavia",
|
||||||
"perm": "0600"
|
"perm": "0600"
|
||||||
}
|
}{% endif %}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user