kolla-ansible/ansible/roles/octavia/tasks/register.yml

43 lines
1.4 KiB
YAML

---
- name: Creating the Octavia service and endpoint
kolla_toolbox:
module_name: "kolla_keystone_service"
module_args:
service_name: "octavia"
service_type: "application-catalog"
description: "Openstack Application Catalogue"
endpoint_region: "{{ openstack_region_name }}"
url: "{{ item.url }}"
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_octavia_auth }}' }}"
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
register: octavia_endpoint
until: octavia_endpoint|success
retries: 10
delay: 5
run_once: True
with_items:
- {'interface': 'admin', 'url': '{{ octavia_admin_endpoint }}'}
- {'interface': 'internal', 'url': '{{ octavia_internal_endpoint }}'}
- {'interface': 'public', 'url': '{{ octavia_public_endpoint }}'}
- name: Creating the Octavia project, user, and role
kolla_toolbox:
module_name: "kolla_keystone_user"
module_args:
project: "service"
user: "octavia"
password: "{{ octavia_keystone_password }}"
role: "admin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_octavia_auth }}' }}"
module_extra_vars:
openstack_octavia_auth: "{{ openstack_octavia_auth }}"
register: octavia_user
until: octavia_user|success
retries: 10
delay: 5
run_once: True