2021-03-25 16:52:04 +05:30
|
|
|
heat_template_version: wallaby
|
2017-12-06 12:41:32 -05:00
|
|
|
|
|
|
|
description: >
|
2018-07-12 12:12:14 +12:00
|
|
|
Prepare container images
|
2017-12-06 12:41:32 -05:00
|
|
|
|
|
|
|
parameters:
|
|
|
|
EndpointMap:
|
|
|
|
default: {}
|
|
|
|
description: Mapping of service endpoint -> protocol. Typically set
|
|
|
|
via parameter_defaults in the resource registry.
|
|
|
|
type: json
|
|
|
|
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
|
2018-05-28 09:11:39 +12:00
|
|
|
ContainerImagePrepare:
|
|
|
|
default: {}
|
|
|
|
description: Used to run "openstack tripleo container image prepare".
|
|
|
|
This is run after the registry is installed to populate
|
|
|
|
the registry with images.
|
|
|
|
type: json
|
2018-07-09 11:13:52 +03:00
|
|
|
ContainerImagePrepareLogFile:
|
2018-09-03 14:17:08 +12:00
|
|
|
default: '/var/log/tripleo-container-image-prepare.log'
|
2018-07-09 11:13:52 +03:00
|
|
|
type: string
|
|
|
|
description: Used to store outputs of "openstack tripleo container image prepare".
|
2018-07-12 12:12:14 +12:00
|
|
|
DockerInsecureRegistryAddress:
|
|
|
|
description: Optional. The IP Address and Port of an insecure docker
|
|
|
|
namespace that will be configured in /etc/sysconfig/docker.
|
|
|
|
The value can be multiple addresses separated by commas.
|
|
|
|
type: comma_delimited_list
|
|
|
|
default: []
|
2018-04-13 18:48:05 -07:00
|
|
|
|
2018-09-25 13:52:45 +12:00
|
|
|
NeutronMechanismDrivers:
|
2018-08-17 15:57:18 +02:00
|
|
|
default: 'ovn'
|
2018-09-25 13:52:45 +12:00
|
|
|
description: |
|
|
|
|
The mechanism drivers for the Neutron tenant network.
|
|
|
|
type: comma_delimited_list
|
|
|
|
|
2018-11-01 14:50:23 +13:00
|
|
|
DockerRegistryMirror:
|
|
|
|
description: Optional. Mirror to use for registry docker.io
|
|
|
|
default: ''
|
|
|
|
type: string
|
2019-11-01 08:51:41 -06:00
|
|
|
Debug:
|
2019-02-13 10:47:01 -05:00
|
|
|
default: false
|
2019-11-01 08:51:41 -06:00
|
|
|
description: Set to True to enable debugging on all services.
|
|
|
|
type: boolean
|
|
|
|
ContainerImagePrepareDebug:
|
2021-03-19 11:50:48 +05:30
|
|
|
default: false
|
2019-02-13 10:47:01 -05:00
|
|
|
description: Whether or not we want to activate --debug in tripleo container image prepare.
|
2021-03-19 11:50:48 +05:30
|
|
|
type: boolean
|
2019-04-08 12:44:54 +12:00
|
|
|
ContainerImageRegistryCredentials:
|
|
|
|
type: json
|
|
|
|
hidden: true
|
|
|
|
default: {}
|
|
|
|
description: |
|
|
|
|
Mapping of image registry hosts to login credentials. Must be in the following example format
|
|
|
|
|
|
|
|
docker.io:
|
|
|
|
username: pa55word
|
|
|
|
'192.0.2.1:8787':
|
|
|
|
registry_username: password
|
2019-05-02 11:33:57 -06:00
|
|
|
AdditionalArchitectures:
|
|
|
|
default: []
|
|
|
|
description: List of additional architectures to enable.
|
|
|
|
type: comma_delimited_list
|
2018-11-01 14:50:23 +13:00
|
|
|
|
2018-07-12 12:12:14 +12:00
|
|
|
{% for role in roles %}
|
|
|
|
# Parameters generated for {{role.name}} Role
|
2019-08-02 14:48:35 -05:00
|
|
|
{{ role.name }}Services:
|
2018-07-12 12:12:14 +12:00
|
|
|
description: A list of service resources (configured in the Heat
|
|
|
|
resource_registry) which represent nested stacks
|
|
|
|
for each service that should get installed on the {{role.name}} role.
|
|
|
|
type: comma_delimited_list
|
|
|
|
|
2019-08-02 14:48:35 -05:00
|
|
|
{{ role.name }}Count:
|
2018-07-12 12:12:14 +12:00
|
|
|
description: Number of {{role.name}} nodes to deploy
|
|
|
|
type: number
|
|
|
|
default: {{role.CountDefault|default(0)}}
|
|
|
|
{% endfor %}
|
2017-12-06 12:41:32 -05:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
role_data:
|
2018-07-12 12:12:14 +12:00
|
|
|
description: Role data for container image prepare
|
2017-12-06 12:41:32 -05:00
|
|
|
value:
|
2018-07-12 12:12:14 +12:00
|
|
|
service_name: container_image_prepare
|
2018-07-12 11:25:06 +12:00
|
|
|
external_deploy_tasks:
|
2019-08-02 14:48:35 -05:00
|
|
|
- name: Run tripleo-container-image-prepare role
|
2019-09-17 17:07:52 +02:00
|
|
|
import_role:
|
2020-01-20 10:31:22 -06:00
|
|
|
name: tripleo_container_image_prepare
|
2019-08-02 14:48:35 -05:00
|
|
|
vars:
|
|
|
|
tripleo_container_image_prepare_log_file: {get_param: ContainerImagePrepareLogFile}
|
2019-09-23 19:14:41 -04:00
|
|
|
tripleo_container_image_prepare_debug:
|
|
|
|
if:
|
2021-03-19 11:50:48 +05:30
|
|
|
- {get_param: ContainerImagePrepareDebug}
|
|
|
|
- true
|
|
|
|
- {get_param: Debug}
|
2019-08-02 14:48:35 -05:00
|
|
|
tripleo_container_image_prepare_roles: {{ roles }}
|
|
|
|
tripleo_container_image_prepare_content:
|
|
|
|
parameter_defaults:
|
|
|
|
ContainerImagePrepare: {get_param: ContainerImagePrepare}
|
|
|
|
DockerInsecureRegistryAddress: {get_param: DockerInsecureRegistryAddress}
|
|
|
|
NeutronMechanismDrivers: {get_param: NeutronMechanismDrivers}
|
|
|
|
DockerRegistryMirror: {get_param: DockerRegistryMirror}
|
|
|
|
ContainerImageRegistryCredentials: {get_param: ContainerImageRegistryCredentials}
|
|
|
|
AdditionalArchitectures: {get_param: AdditionalArchitectures}
|
2018-07-12 12:12:14 +12:00
|
|
|
{% for role in roles %}
|
2019-08-02 14:48:35 -05:00
|
|
|
{{ role.name }}Services: {get_param: {{role.name}}Services}
|
|
|
|
{{ role.name }}Count: {get_param: {{role.name}}Count}
|
2018-07-12 12:12:14 +12:00
|
|
|
{% endfor %}
|
2019-08-02 14:48:35 -05:00
|
|
|
when:
|
|
|
|
- (step | int) == 1
|