Skip to content
Snippets Groups Projects
Commit 56374206 authored by Eduardo Gonzalez's avatar Eduardo Gonzalez
Browse files

Fix deployment with public TLS enabled

When deploying with tls enabled in public
endpoints, ansible modules fails due SSL certificates
are self-signed.

This change adds a new variable to allow customization
on which endpoints ansible should connect.
Defaults to admin because admin auth parameters defaults
to admin endpoint.

Change-Id: Ic3ed58cf9c9579cae08a11bbfe6fce983b5a9cbc
Closes-Bug: #1720995
parent 709c6b7b
No related branches found
No related tags found
No related merge requests found
Showing
with 42 additions and 0 deletions
......@@ -9,6 +9,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_kuryr_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_kuryr_auth: "{{ openstack_kuryr_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_magnum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_magnum_auth: "{{ openstack_magnum_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_magnum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_magnum_auth: "{{ openstack_magnum_auth }}"
run_once: True
......@@ -40,6 +42,7 @@
name: "{{ magnum_trustee_domain }}"
description: "Owns users and projects created by magnum"
auth: "{{ '{{ openstack_magnum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_magnum_auth: "{{ openstack_magnum_auth }}"
register: trustee_domain
......@@ -53,6 +56,7 @@
domain: "{{ magnum_trustee_domain }}"
password: "{{ magnum_keystone_password }}"
auth: "{{ '{{ openstack_magnum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_magnum_auth: "{{ openstack_magnum_auth }}"
run_once: True
......@@ -65,6 +69,7 @@
user: "{{ magnum_trustee_domain_admin }}"
role: "admin"
auth: "{{ '{{ openstack_magnum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_magnum_auth: "{{ openstack_magnum_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_manila_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_manila_auth: "{{ openstack_manila_auth }}"
run_once: True
......@@ -32,6 +33,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_manila_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_manila_auth: "{{ openstack_manila_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_mistral_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_mistral_auth: "{{ openstack_mistral_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_mistral_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_mistral_auth: "{{ openstack_mistral_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_murano_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_murano_auth: "{{ openstack_murano_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_murano_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_murano_auth: "{{ openstack_murano_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_neutron_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_neutron_auth: "{{ openstack_neutron_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_neutron_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_neutron_auth: "{{ openstack_neutron_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_nova_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_nova_auth: "{{ openstack_nova_auth }}"
run_once: True
......@@ -36,6 +37,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_nova_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_nova_auth: "{{ openstack_nova_auth }}"
run_once: True
......@@ -50,6 +52,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_placement_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_placement_auth: "{{ openstack_placement_auth }}"
register: placement_user
......
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_octavia_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_octavia_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
run_once: True
......@@ -41,6 +43,7 @@
role: admin
project: admin
auth: "{{ '{{ openstack_octavia_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_panko_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_panko_auth: "{{ openstack_panko_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_panko_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_panko_auth: "{{ openstack_panko_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_sahara_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_sahara_auth: "{{ openstack_sahara_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_sahara_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_sahara_auth: "{{ openstack_sahara_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_searchlight_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_searchlight_auth: "{{ openstack_searchlight_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_searchlight_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_searchlight_auth: "{{ openstack_searchlight_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_senlin_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_senlin_auth: "{{ openstack_senlin_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_senlin_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_senlin_auth: "{{ openstack_senlin_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_solum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_solum_auth: "{{ openstack_solum_auth }}"
run_once: True
......@@ -31,6 +32,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_solum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_solum_auth: "{{ openstack_solum_auth }}"
run_once: True
......@@ -49,6 +51,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_solum_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_solum_auth: "{{ openstack_solum_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_swift_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_swift_auth: "{{ openstack_swift_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "{{ swift_admin_tenant_name }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_swift_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_swift_auth: "{{ openstack_swift_auth }}"
run_once: True
......@@ -40,6 +42,7 @@
name: "ResellerAdmin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_swift_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_swift_auth: "{{ openstack_swift_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_tacker_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_tacker_auth: "{{ openstack_tacker_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_tacker_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_tacker_auth: "{{ openstack_tacker_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_trove_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_trove_auth: "{{ openstack_trove_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_trove_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_trove_auth: "{{ openstack_trove_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_watcher_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_watcher_auth: "{{ openstack_watcher_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_watcher_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_watcher_auth: "{{ openstack_watcher_auth }}"
run_once: True
......@@ -11,6 +11,7 @@
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_zun_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_zun_auth: "{{ openstack_zun_auth }}"
run_once: True
......@@ -29,6 +30,7 @@
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_zun_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_zun_auth: "{{ openstack_zun_auth }}"
run_once: True
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment