
the sahara service-type is data-processing,not data_processing if use data_processing,the sahara client will take mistake. refer to [1] [1] https://docs.openstack.org/sahara/latest/install/installation-guide.html#common-installation-steps Co-Authored-By: zhulingjie <easyzlj@gmail.com> Change-Id: I4c6704a81921bf713073451dc4e93e44234e5a7c
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
---
|
|
- name: Creating the Sahara service and endpoint
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_service"
|
|
module_args:
|
|
service_name: "sahara"
|
|
service_type: "data-processing"
|
|
description: "Sahara Data Processing"
|
|
endpoint_region: "{{ openstack_region_name }}"
|
|
url: "{{ item.url }}"
|
|
interface: "{{ item.interface }}"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ openstack_sahara_auth }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
run_once: True
|
|
with_items:
|
|
- {'interface': 'admin', 'url': '{{ sahara_admin_endpoint }}'}
|
|
- {'interface': 'internal', 'url': '{{ sahara_internal_endpoint }}'}
|
|
- {'interface': 'public', 'url': '{{ sahara_public_endpoint }}'}
|
|
|
|
- name: Creating the Sahara project, user, and role
|
|
kolla_toolbox:
|
|
module_name: "kolla_keystone_user"
|
|
module_args:
|
|
project: "service"
|
|
user: "{{ sahara_keystone_user }}"
|
|
password: "{{ sahara_keystone_password }}"
|
|
role: "admin"
|
|
region_name: "{{ openstack_region_name }}"
|
|
auth: "{{ openstack_sahara_auth }}"
|
|
endpoint_type: "{{ openstack_interface }}"
|
|
run_once: True
|