Files
kolla-ansible/ansible/roles/swift/tasks/register.yml
Eduardo Gonzalez 56374206be Fix deployment with public TLS enabled
When deploying with tls enabled in public
endpoints, ansible modules fails due SSL certificates
are self-signed.

This change adds a new variable to allow customization
on which endpoints ansible should connect.
Defaults to admin because admin auth parameters defaults
to admin endpoint.

Change-Id: Ic3ed58cf9c9579cae08a11bbfe6fce983b5a9cbc
Closes-Bug: #1720995
2017-10-05 08:36:34 +00:00

49 lines
1.7 KiB
YAML

---
- name: Creating the Swift service and endpoint
kolla_toolbox:
module_name: "kolla_keystone_service"
module_args:
service_name: "swift"
service_type: "object-store"
description: "Openstack Object Storage"
endpoint_region: "{{ openstack_region_name }}"
url: "{{ item.url }}"
interface: "{{ item.interface }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_swift_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_swift_auth: "{{ openstack_swift_auth }}"
run_once: True
with_items:
- {'interface': 'admin', 'url': '{{ swift_admin_endpoint }}'}
- {'interface': 'internal', 'url': '{{ swift_internal_endpoint }}'}
- {'interface': 'public', 'url': '{{ swift_public_endpoint }}'}
- name: Creating the Swift project, user, and role
kolla_toolbox:
module_name: "kolla_keystone_user"
module_args:
project: "service"
user: "{{ swift_keystone_user }}"
password: "{{ swift_keystone_password }}"
role: "{{ swift_admin_tenant_name }}"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_swift_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_swift_auth: "{{ openstack_swift_auth }}"
run_once: True
- name: Creating the ResellerAdmin role
kolla_toolbox:
module_name: "os_keystone_role"
module_args:
name: "ResellerAdmin"
region_name: "{{ openstack_region_name }}"
auth: "{{ '{{ openstack_swift_auth }}' }}"
endpoint_type: "{{ openstack_interface }}"
module_extra_vars:
openstack_swift_auth: "{{ openstack_swift_auth }}"
run_once: True