aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/gnocchi/tasks/register.yml
diff options
context:
space:
mode:
authorSteven Dake <stdake@cisco.com>2016-11-15 19:01:25 -0700
committerSteven Dake <stdake@cisco.com>2016-11-15 21:34:17 -0700
commit3fcef82946f7053affcfb0b1b3ef4292beb9fa95 (patch)
tree0b9083d2cbf7d6c8d372de6b016419d6a719d424 /ansible/roles/gnocchi/tasks/register.yml
parent0963c2255a9718419c1cf8deaff350ea6ddc8472 (diff)
downloadkolla-3fcef82946f7053affcfb0b1b3ef4292beb9fa95.tar.gz
kolla-3fcef82946f7053affcfb0b1b3ef4292beb9fa95.zip
Remove Ansible from Kolla
Change-Id: I5396e4b9927d3e65b6aa4185238a43a4765a996b
Diffstat (limited to 'ansible/roles/gnocchi/tasks/register.yml')
-rw-r--r--ansible/roles/gnocchi/tasks/register.yml40
1 files changed, 0 insertions, 40 deletions
diff --git a/ansible/roles/gnocchi/tasks/register.yml b/ansible/roles/gnocchi/tasks/register.yml
deleted file mode 100644
index 5b60ff22f..000000000
--- a/ansible/roles/gnocchi/tasks/register.yml
+++ /dev/null
@@ -1,40 +0,0 @@
----
-- name: Creating the gnocchi service and endpoint
- command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
- -m kolla_keystone_service
- -a "service_name=gnocchi
- service_type=metric
- description='OpenStack Metric Service'
- endpoint_region={{ openstack_region_name }}
- url='{{ item.url }}'
- interface='{{ item.interface }}'
- region_name={{ openstack_region_name }}
- auth={{ '{{ openstack_gnocchi_auth }}' }}"
- -e "{'openstack_gnocchi_auth':{{ openstack_gnocchi_auth }}}"
- register: gnocchi_endpoint
- changed_when: "{{ gnocchi_endpoint.stdout.find('localhost | SUCCESS => ') != -1 and (gnocchi_endpoint.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
- until: gnocchi_endpoint.stdout.split()[2] == 'SUCCESS'
- retries: 10
- delay: 5
- run_once: True
- with_items:
- - {'interface': 'admin', 'url': '{{ gnocchi_admin_endpoint }}'}
- - {'interface': 'internal', 'url': '{{ gnocchi_internal_endpoint }}'}
- - {'interface': 'public', 'url': '{{ gnocchi_public_endpoint }}'}
-
-- name: Creating the gnocchi project, user, and role
- command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
- -m kolla_keystone_user
- -a "project=service
- user=gnocchi
- password={{ gnocchi_keystone_password }}
- role=admin
- region_name={{ openstack_region_name }}
- auth={{ '{{ openstack_gnocchi_auth }}' }}"
- -e "{'openstack_gnocchi_auth':{{ openstack_gnocchi_auth }}}"
- register: gnocchi_user
- changed_when: "{{ gnocchi_user.stdout.find('localhost | SUCCESS => ') != -1 and (gnocchi_user.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"
- until: gnocchi_user.stdout.split()[2] == 'SUCCESS'
- retries: 10
- delay: 5
- run_once: True