45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
---
|
|
- name: Creating the aodh service and endpoint
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_service"
|
|
module_args:
|
|
service_name: "aodh"
|
|
service_type: "alarming"
|
|
description: "OpenStack Alarming Service"
|
|
endpoint_region: "{{ openstack_region_name }}"
|
|
url: "{{ item.url }}"
|
|
interface: "{{ item.interface }}"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ '{{ openstack_aodh_auth }}' }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
module_extra_vars:
|
|
openstack_aodh_auth: "{{ openstack_aodh_auth }}"
|
|
register: aodh_endpoint
|
|
until: aodh_endpoint|success
|
|
retries: 10
|
|
delay: 5
|
|
run_once: True
|
|
with_items:
|
|
- {'interface': 'admin', 'url': '{{ aodh_admin_endpoint }}'}
|
|
- {'interface': 'internal', 'url': '{{ aodh_internal_endpoint }}'}
|
|
- {'interface': 'public', 'url': '{{ aodh_public_endpoint }}'}
|
|
|
|
- name: Creating the aodh project, user, and role
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_user"
|
|
module_args:
|
|
project: "service"
|
|
user: "{{ aodh_keystone_user }}"
|
|
password: "{{ aodh_keystone_password }}"
|
|
role: "admin"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ '{{ openstack_aodh_auth }}' }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
module_extra_vars:
|
|
openstack_aodh_auth: "{{ openstack_aodh_auth }}"
|
|
register: aodh_user
|
|
until: aodh_user|success
|
|
retries: 10
|
|
delay: 5
|
|
run_once: True
|