35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
---
|
|
- name: Creating the gnocchi service and endpoint
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_service"
|
|
module_args:
|
|
service_name: "gnocchi"
|
|
service_type: "metric"
|
|
description: "OpenStack Metric Service"
|
|
endpoint_region: "{{ openstack_region_name }}"
|
|
url: "{{ item.url }}"
|
|
interface: "{{ item.interface }}"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ '{{ openstack_gnocchi_auth }}' }}"
|
|
module_extra_vars:
|
|
openstack_gnocchi_auth: "{{ openstack_gnocchi_auth }}"
|
|
run_once: True
|
|
with_items:
|
|
- {'interface': 'admin', 'url': '{{ gnocchi_admin_endpoint }}'}
|
|
- {'interface': 'internal', 'url': '{{ gnocchi_internal_endpoint }}'}
|
|
- {'interface': 'public', 'url': '{{ gnocchi_public_endpoint }}'}
|
|
|
|
- name: Creating the gnocchi project, user, and role
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_user"
|
|
module_args:
|
|
project: "service"
|
|
user: "{{ gnocchi_keystone_user }}"
|
|
password: "{{ gnocchi_keystone_password }}"
|
|
role: "admin"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ '{{ openstack_gnocchi_auth }}' }}"
|
|
module_extra_vars:
|
|
openstack_gnocchi_auth: "{{ openstack_gnocchi_auth }}"
|
|
run_once: True
|