diff --git a/ansible/roles/monasca/tasks/register.yml b/ansible/roles/monasca/tasks/register.yml index b2f5b74c85..b4abf6806e 100644 --- a/ansible/roles/monasca/tasks/register.yml +++ b/ansible/roles/monasca/tasks/register.yml @@ -11,6 +11,7 @@ interface: "{{ item.interface }}" region_name: "{{ openstack_region_name }}" auth: "{{ monasca_openstack_auth }}" + endpoint_type: "{{ openstack_interface }}" run_once: True with_items: - {'interface': 'admin', 'url': '{{ monasca_api_admin_endpoint }}'} @@ -29,6 +30,7 @@ interface: "{{ item.interface }}" region_name: "{{ openstack_region_name }}" auth: "{{ monasca_openstack_auth }}" + endpoint_type: "{{ openstack_interface }}" run_once: True with_items: - {'interface': 'admin', 'url': '{{ monasca_log_api_admin_endpoint }}'} @@ -45,6 +47,7 @@ role: "admin" region_name: "{{ openstack_region_name }}" auth: "{{ monasca_openstack_auth }}" + endpoint_type: "{{ openstack_interface }}" run_once: True - name: Creating monasca roles @@ -54,6 +57,7 @@ name: "{{ item }}" region_name: "{{ openstack_region_name }}" auth: "{{ monasca_openstack_auth }}" + endpoint_type: "{{ openstack_interface }}" run_once: True with_items: - "{{ monasca_default_authorized_roles }}"