55 lines
1.8 KiB
YAML
55 lines
1.8 KiB
YAML
heat_template_version: wallaby
|
|
|
|
description: >
|
|
Upgrade an undercloud to use ephemeral Heat
|
|
|
|
parameters:
|
|
ServiceData:
|
|
default: {}
|
|
description: Dictionary packing service data
|
|
type: json
|
|
ServiceNetMap:
|
|
default: {}
|
|
description: Mapping of service_name -> network name. Typically set
|
|
via parameter_defaults in the resource registry. This
|
|
mapping overrides those in ServiceNetMapDefaults.
|
|
type: json
|
|
RoleName:
|
|
default: ''
|
|
description: Role name on which the service is applied
|
|
type: string
|
|
RoleParameters:
|
|
default: {}
|
|
description: Parameters specific to the role
|
|
type: json
|
|
EndpointMap:
|
|
default: {}
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
via parameter_defaults in the resource registry.
|
|
type: json
|
|
|
|
outputs:
|
|
role_data:
|
|
description: Role data for the TripleO Undercloud Upgrade Ephemeral Heat service.
|
|
value:
|
|
service_name: undercloud_upgrade_ephemeral_heat
|
|
upgrade_tasks:
|
|
- name: Create /var/lib/tripleo-config/scripts dir
|
|
file:
|
|
path: /var/lib/tripleo-config/scripts
|
|
state: directory
|
|
recurse: true
|
|
when:
|
|
- step|int == 1
|
|
- name: Copy undercloud-upgrade-ephemeral-heat.py to /var/lib/tripleo-config/scripts
|
|
copy:
|
|
dest: /var/lib/tripleo-config/scripts/undercloud-upgrade-ephemeral-heat.py
|
|
content: {get_file: ../../scripts/undercloud-upgrade-ephemeral-heat.py}
|
|
mode: 0755
|
|
when:
|
|
- step|int == 1
|
|
- name: Run undercloud-upgrade-ephemeral-heat.py
|
|
shell: /var/lib/tripleo-config/scripts/undercloud-upgrade-ephemeral-heat.py
|
|
when:
|
|
- step|int == 1
|