Merge "Apply new register method"
This commit is contained in:
commit
d7bc9a01ad
ansible/roles
designate
karbor
panko
@ -52,4 +52,4 @@ designate_logging_debug: "{{ openstack_logging_debug }}"
|
|||||||
|
|
||||||
designate_keystone_user: "designate"
|
designate_keystone_user: "designate"
|
||||||
|
|
||||||
openstack_designate_auth: "{'auth_url':'{{ openstack_auth.auth_url }}','username':'{{ openstack_auth.username }}','password':'{{ openstack_auth.password }}','project_name':'{{ openstack_auth.project_name }}'}"
|
openstack_designate_auth: "{{ openstack_auth }}"
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
---
|
---
|
||||||
- name: Creating the Designate service and endpoint
|
- name: Creating the Designate service and endpoint
|
||||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
kolla_toolbox:
|
||||||
-m kolla_keystone_service
|
module_name: "kolla_keystone_service"
|
||||||
-a "service_name=designate
|
module_args:
|
||||||
service_type=dns
|
service_name: "designate"
|
||||||
description='Designate DNS Service'
|
service_type: "dns"
|
||||||
endpoint_region={{ openstack_region_name }}
|
description: "Designate DNS Service"
|
||||||
url='{{ item.url }}'
|
endpoint_region: "{{ openstack_region_name }}"
|
||||||
interface='{{ item.interface }}'
|
url: "{{ item.url }}"
|
||||||
region_name={{ openstack_region_name }}
|
interface: "{{ item.interface }}"
|
||||||
auth={{ '{{ openstack_designate_auth }}' }}"
|
region_name: "{{ openstack_region_name }}"
|
||||||
-e "{'openstack_designate_auth':{{ openstack_designate_auth }}}"
|
auth: "{{ '{{ openstack_designate_auth }}' }}"
|
||||||
|
module_extra_vars:
|
||||||
|
openstack_designate_auth: "{{ openstack_designate_auth }}"
|
||||||
register: designate_endpoint
|
register: designate_endpoint
|
||||||
changed_when: "{{ designate_endpoint.stdout.find('localhost | SUCCESS => ') != -1 and (designate_endpoint.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
until: designate_endpoint|success
|
||||||
until: designate_endpoint.stdout.split()[2] == 'SUCCESS'
|
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
@ -23,18 +24,19 @@
|
|||||||
- {'interface': 'public', 'url': '{{ designate_public_endpoint }}'}
|
- {'interface': 'public', 'url': '{{ designate_public_endpoint }}'}
|
||||||
|
|
||||||
- name: Creating the Designate project, user, and role
|
- name: Creating the Designate project, user, and role
|
||||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
kolla_toolbox:
|
||||||
-m kolla_keystone_user
|
module_name: "kolla_keystone_user"
|
||||||
-a "project=service
|
module_args:
|
||||||
user={{ designate_keystone_user }}
|
project: "service"
|
||||||
password={{ designate_keystone_password }}
|
user: "{{ designate_keystone_user }}"
|
||||||
role=admin
|
password: "{{ designate_keystone_password }}"
|
||||||
region_name={{ openstack_region_name }}
|
role: "admin"
|
||||||
auth={{ '{{ openstack_designate_auth }}' }}"
|
region_name: "{{ openstack_region_name }}"
|
||||||
-e "{'openstack_designate_auth':{{ openstack_designate_auth }}}"
|
auth: "{{ '{{ openstack_designate_auth }}' }}"
|
||||||
|
module_extra_vars:
|
||||||
|
openstack_designate_auth: "{{ openstack_designate_auth }}"
|
||||||
register: designate_user
|
register: designate_user
|
||||||
changed_when: "{{ designate_user.stdout.find('localhost | SUCCESS => ') != -1 and (designate_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
until: designate_user|success
|
||||||
until: designate_user.stdout.split()[2] == 'SUCCESS'
|
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
|
@ -36,4 +36,4 @@ karbor_logging_debug: "{{ openstack_logging_debug }}"
|
|||||||
|
|
||||||
karbor_keystone_user: "karbor"
|
karbor_keystone_user: "karbor"
|
||||||
|
|
||||||
openstack_karbor_auth: "{'auth_url':'{{ openstack_auth.auth_url }}','username':'{{ openstack_auth.username }}','password':'{{ openstack_auth.password }}','project_name':'{{ openstack_auth.project_name }}'}"
|
openstack_karbor_auth: "{{ openstack_auth }}"
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
---
|
---
|
||||||
- name: Creating the Karbor service and endpoint
|
- name: Creating the Karbor service and endpoint
|
||||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
kolla_toolbox:
|
||||||
-m kolla_keystone_service
|
module_name: "kolla_keystone_service"
|
||||||
-a "service_name=karbor
|
module_args:
|
||||||
service_type=data-protect
|
service_name: "karbor"
|
||||||
description='Application Data Protection Service'
|
service_type: "data-protect"
|
||||||
endpoint_region={{ openstack_region_name }}
|
description: "Application Data Protection Service"
|
||||||
url='{{ item.url }}'
|
endpoint_region: "{{ openstack_region_name }}"
|
||||||
interface='{{ item.interface }}'
|
url: "{{ item.url }}"
|
||||||
region_name={{ openstack_region_name }}
|
interface: "{{ item.interface }}"
|
||||||
auth={{ '{{ openstack_karbor_auth }}' }}"
|
region_name: "{{ openstack_region_name }}"
|
||||||
-e "{'openstack_karbor_auth':{{ openstack_karbor_auth }}}"
|
auth: "{{ '{{ openstack_karbor_auth }}' }}"
|
||||||
|
module_extra_vars:
|
||||||
|
openstack_karbor_auth: "{{ openstack_karbor_auth }}"
|
||||||
register: karbor_endpoint
|
register: karbor_endpoint
|
||||||
changed_when: "{{ karbor_endpoint.stdout.find('localhost | SUCCESS => ') != -1 and (karbor_endpoint.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
until: karbor_endpoint|success
|
||||||
until: karbor_endpoint.stdout.split()[2] == 'SUCCESS'
|
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
@ -23,18 +24,19 @@
|
|||||||
- {'interface': 'public', 'url': '{{ karbor_public_endpoint }}'}
|
- {'interface': 'public', 'url': '{{ karbor_public_endpoint }}'}
|
||||||
|
|
||||||
- name: Creating the Karbor project, user, and role
|
- name: Creating the Karbor project, user, and role
|
||||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
kolla_toolbox:
|
||||||
-m kolla_keystone_user
|
module_name: "kolla_keystone_user"
|
||||||
-a "project=service
|
module_args:
|
||||||
user={{ karbor_keystone_user }}
|
project: "service"
|
||||||
password={{ karbor_keystone_password }}
|
user: "{{ karbor_keystone_user }}"
|
||||||
role=admin
|
password: "{{ karbor_keystone_password }}"
|
||||||
region_name={{ openstack_region_name }}
|
role: "admin"
|
||||||
auth={{ '{{ openstack_karbor_auth }}' }}"
|
region_name: "{{ openstack_region_name }}"
|
||||||
-e "{'openstack_karbor_auth':{{ openstack_karbor_auth }}}"
|
auth: "{{ '{{ openstack_karbor_auth }}' }}"
|
||||||
|
module_extra_vars:
|
||||||
|
openstack_karbor_auth: "{{ openstack_karbor_auth }}"
|
||||||
register: karbor_user
|
register: karbor_user
|
||||||
changed_when: "{{ karbor_user.stdout.find('localhost | SUCCESS => ') != -1 and (karbor_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
until: karbor_user|success
|
||||||
until: karbor_user.stdout.split()[2] == 'SUCCESS'
|
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
|
@ -40,4 +40,4 @@ panko_logging_debug: "{{ openstack_logging_debug }}"
|
|||||||
|
|
||||||
panko_keystone_user: "panko"
|
panko_keystone_user: "panko"
|
||||||
|
|
||||||
openstack_panko_auth: "{'auth_url':'{{ openstack_auth.auth_url }}','username':'{{ openstack_auth.username }}','password':'{{ openstack_auth.password }}','project_name':'{{ openstack_auth.project_name }}','domain_name':'default'}"
|
openstack_panko_auth: "{{ openstack_auth }}"
|
||||||
|
@ -1,19 +1,20 @@
|
|||||||
---
|
---
|
||||||
- name: Creating the panko service and endpoint
|
- name: Creating the panko service and endpoint
|
||||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
kolla_toolbox:
|
||||||
-m kolla_keystone_service
|
module_name: "kolla_keystone_service"
|
||||||
-a "service_name=panko
|
module_args:
|
||||||
service_type=event
|
service_name: "panko"
|
||||||
description='Panko Service'
|
service_type: "event"
|
||||||
endpoint_region={{ openstack_region_name }}
|
description: "Panko Service"
|
||||||
url='{{ item.url }}'
|
endpoint_region: "{{ openstack_region_name }}"
|
||||||
interface='{{ item.interface }}'
|
url: "{{ item.url }}"
|
||||||
region_name={{ openstack_region_name }}
|
interface: "{{ item.interface }}"
|
||||||
auth={{ '{{ openstack_panko_auth }}' }}"
|
region_name: "{{ openstack_region_name }}"
|
||||||
-e "{'openstack_panko_auth':{{ openstack_panko_auth }}}"
|
auth: "{{ '{{ openstack_panko_auth }}' }}"
|
||||||
|
module_extra_vars:
|
||||||
|
openstack_panko_auth: "{{ openstack_panko_auth }}"
|
||||||
register: panko_endpoint
|
register: panko_endpoint
|
||||||
changed_when: "{{ panko_endpoint.stdout.find('localhost | SUCCESS => ') != -1 and (panko_endpoint.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
until: panko_endpoint|success
|
||||||
until: panko_endpoint.stdout.split()[2] == 'SUCCESS'
|
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
@ -23,18 +24,19 @@
|
|||||||
- {'interface': 'public', 'url': '{{ panko_public_endpoint }}'}
|
- {'interface': 'public', 'url': '{{ panko_public_endpoint }}'}
|
||||||
|
|
||||||
- name: Creating the panko project, user, and role
|
- name: Creating the panko project, user, and role
|
||||||
command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
|
kolla_toolbox:
|
||||||
-m kolla_keystone_user
|
module_name: "kolla_keystone_user"
|
||||||
-a "project=service
|
module_args:
|
||||||
user={{ panko_keystone_user }}
|
project: "service"
|
||||||
password={{ panko_keystone_password }}
|
user: "{{ panko_keystone_user }}"
|
||||||
role=admin
|
password: "{{ panko_keystone_password }}"
|
||||||
region_name={{ openstack_region_name }}
|
role: "admin"
|
||||||
auth={{ '{{ openstack_panko_auth }}' }}"
|
region_name: "{{ openstack_region_name }}"
|
||||||
-e "{'openstack_panko_auth':{{ openstack_panko_auth }}}"
|
auth: "{{ '{{ openstack_panko_auth }}' }}"
|
||||||
|
module_extra_vars:
|
||||||
|
openstack_panko_auth: "{{ openstack_panko_auth }}"
|
||||||
register: panko_user
|
register: panko_user
|
||||||
changed_when: "{{ panko_user.stdout.find('localhost | SUCCESS => ') != -1 and (panko_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
|
until: panko_user|success
|
||||||
until: panko_user.stdout.split()[2] == 'SUCCESS'
|
|
||||||
retries: 10
|
retries: 10
|
||||||
delay: 5
|
delay: 5
|
||||||
run_once: True
|
run_once: True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user