From 59298332fcce78d043692594177aa72e6ffb8d10 Mon Sep 17 00:00:00 2001
From: SamYaple <sam@yaple.net>
Date: Sun, 20 Mar 2016 17:18:05 +0000
Subject: [PATCH] Fix heat endpoint registration

This got lost in the keystone v3 switchover.

Change-Id: I014c28e71335672153df79be2110e7585d7a21c0
Related-Bug: 1553565
---
 ansible/roles/heat/tasks/register.yml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/ansible/roles/heat/tasks/register.yml b/ansible/roles/heat/tasks/register.yml
index 3e4235fb2b..e5e595c53c 100644
--- a/ansible/roles/heat/tasks/register.yml
+++ b/ansible/roles/heat/tasks/register.yml
@@ -2,8 +2,8 @@
 - name: Creating the Heat service and endpoint
   command: docker exec -t kolla_toolbox /usr/bin/ansible localhost
     -m kolla_keystone_service
-    -a "service_name=heat
-        service_type=orchestration
+    -a "service_name={{ item.service_name }}
+        service_type={{ item.service_type }}
         description='Openstack Orchestration'
         endpoint_region={{ openstack_region_name }}
         url='{{ item.url }}'
@@ -18,12 +18,12 @@
   delay: 5
   run_once: True
   with_items:
-    - {'interface': 'admin', 'url': '{{ heat_admin_endpoint }}'}
-    - {'interface': 'internal', 'url': '{{ heat_internal_endpoint }}'}
-    - {'interface': 'public', 'url': '{{ heat_public_endpoint }}'}
-    - {'interface': 'admin', 'url': '{{ heat_cfn_admin_endpoint }}'}
-    - {'interface': 'internal', 'url': '{{ heat_cfn_internal_endpoint }}'}
-    - {'interface': 'public', 'url': '{{ heat_cfn_public_endpoint }}'}
+    - {'interface': 'admin', 'url': '{{ heat_admin_endpoint }}', 'service_name': 'heat', 'service_type': 'orchestration'}
+    - {'interface': 'internal', 'url': '{{ heat_internal_endpoint }}', 'service_name': 'heat', 'service_type': 'orchestration'}
+    - {'interface': 'public', 'url': '{{ heat_public_endpoint }}', 'service_name': 'heat', 'service_type': 'orchestration'}
+    - {'interface': 'admin', 'url': '{{ heat_cfn_admin_endpoint }}', 'service_name': 'heat-cfn', 'service_type': 'cloudformation'}
+    - {'interface': 'internal', 'url': '{{ heat_cfn_internal_endpoint }}', 'service_name': 'heat-cfn', 'service_type': 'cloudformation'}
+    - {'interface': 'public', 'url': '{{ heat_cfn_public_endpoint }}', 'service_name': 'heat-cfn', 'service_type': 'cloudformation'}
 
 - name: Creating the Heat project, user, and role
   command: docker exec -t kolla_toolbox /usr/bin/ansible localhost