Skip to content
Snippets Groups Projects
Commit ea5a7dd3 authored by Doug Szumski's avatar Doug Szumski
Browse files

Explicitly specify endpoint type during Monasca registration


Monasca defaults to using the public endpoint to register
Monasca endpoints which is bad practice and doesn't work on
some deployments. This change uses the admin interface by
default.

Change-Id: Ia9c5e041e71867fe72aad43e1344cd2107652d7d
Co-Authored-By: default avatarMark Goddard <mark@stackhpc.com>
Closes-Bug: #1787610
parent 144b3ecb
No related branches found
No related tags found
No related merge requests found
......@@ -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 }}"
......
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