70 lines
2.4 KiB
YAML
70 lines
2.4 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
|
|
OvercloudStackRoleDataFileMap:
|
|
default: {}
|
|
description: |
|
|
Mapping of overcloud stack name, and the absolute path to the
|
|
roles data file used when deploying/updating the stack.
|
|
For example: {'overcloud': '/home/stack/roles_data.yaml'}
|
|
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: Store OvercloudStackRoleDataFileMap on file
|
|
vars:
|
|
role_data_file_map: {get_param: OvercloudStackRoleDataFileMap}
|
|
copy:
|
|
dest: /var/lib/tripleo-config/overcloud-stack-role-data-file-map.yaml
|
|
content: "{{ role_data_file_map | to_nice_yaml }}"
|
|
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
|