From 3a0b86e4e2bd624ffca99789cf00fce421316ebf Mon Sep 17 00:00:00 2001 From: James Slagle Date: Fri, 12 Nov 2021 15:46:16 -0500 Subject: [PATCH] Add ephemeral Heat entry to clouds.yaml Adds an external_deploy_tasks to the ephemeral heat service used during the undercloud install so that clouds.yaml gets configured with a cloud config that can be used with ephemeral Heat. When configured, it can be used as: OS_CLOUD=heat openstack stack list Depends-On: Id9992ee242d381c02cb530838fef21e60d10dfa6 Change-Id: I18900708cc7f667443b68690e47f97a1f49faa68 Signed-off-by: James Slagle --- .../heat-ephemeral-container-ansible.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/deployment/heat/heat-ephemeral-container-ansible.yaml b/deployment/heat/heat-ephemeral-container-ansible.yaml index 38a4869e69..3675598445 100644 --- a/deployment/heat/heat-ephemeral-container-ansible.yaml +++ b/deployment/heat/heat-ephemeral-container-ansible.yaml @@ -78,6 +78,28 @@ outputs: vars: container_image: {get_param: ContainerHeatApiImage} container_image_latest: "localhost/tripleo/openstack-heat-api:ephemeral" + external_deploy_tasks: + - name: Manage clouds.yaml file for ephemeral Heat + when: + - step|int == 1 + - not ansible_check_mode|bool + block: + - name: Create /etc/openstack directory if it does not exist + become: true + file: + mode: '0755' + owner: root + path: /etc/openstack + state: directory + - name: Configure /etc/openstack/clouds.yaml for ephemeral Heat + include_role: + name: tripleo_keystone_resources + tasks_from: clouds + vars: + tripleo_keystone_resources_cloud_name: heat + tripleo_keystone_resources_cloud_config: + auth_type: none + endpoint: http://127.0.0.1:8006/v1/admin upgrade_tasks: - name: Convert to Ephemeral Heat when: