diff options
Diffstat (limited to 'ansible/roles/barbican/tasks/register.yml')
| -rw-r--r-- | ansible/roles/barbican/tasks/register.yml | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ansible/roles/barbican/tasks/register.yml b/ansible/roles/barbican/tasks/register.yml deleted file mode 100644 index 5bc6719c9..000000000 --- a/ansible/roles/barbican/tasks/register.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- name: Creating the barbican service and endpoint - command: docker exec -t kolla_toolbox /usr/bin/ansible localhost - -m kolla_keystone_service - -a "service_name=barbican - service_type=key-manager - description='Barbican Key Management Service' - endpoint_region={{ openstack_region_name }} - url='{{ item.url }}' - interface='{{ item.interface }}' - region_name={{ openstack_region_name }} - auth={{ '{{ openstack_barbican_auth }}' }}" - -e "{'openstack_barbican_auth':{{ openstack_barbican_auth }}}" - register: barbican_endpoint - changed_when: "{{ barbican_endpoint.stdout.find('localhost | SUCCESS => ') != -1 and (barbican_endpoint.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" - until: barbican_endpoint.stdout.split()[2] == 'SUCCESS' - retries: 10 - delay: 5 - run_once: True - with_items: - - {'interface': 'admin', 'url': '{{ barbican_admin_endpoint }}'} - - {'interface': 'internal', 'url': '{{ barbican_internal_endpoint }}'} - - {'interface': 'public', 'url': '{{ barbican_public_endpoint }}'} - -- name: Creating the barbican project, user, and role - command: docker exec -t kolla_toolbox /usr/bin/ansible localhost - -m kolla_keystone_user - -a "project=service - user=barbican - password={{ barbican_keystone_password }} - role=admin - region_name={{ openstack_region_name }} - auth={{ '{{ openstack_barbican_auth }}' }}" - -e "{'openstack_barbican_auth':{{ openstack_barbican_auth }}}" - register: barbican_user - changed_when: "{{ barbican_user.stdout.find('localhost | SUCCESS => ') != -1 and (barbican_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}" - until: barbican_user.stdout.split()[2] == 'SUCCESS' - retries: 10 - delay: 5 - run_once: True |
