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>
(cherry picked from commit 3a0b86e4e2)
This commit is contained in:
committed by
Jose Luis Franco Arza
parent
d36dfedac2
commit
91bf7b11aa
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user