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 <jslagle@redhat.com>
This commit is contained in:
James Slagle 2021-11-12 15:46:16 -05:00
parent f0276850f9
commit 3a0b86e4e2
1 changed files with 22 additions and 0 deletions

View File

@ -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: