Merge "Add artifact push interface to deployments"

This commit is contained in:
Zuul 2021-03-29 16:51:22 +00:00 committed by Gerrit Code Review
commit 1bb50929a4

@ -148,7 +148,12 @@ parameters:
type: boolean
DeployArtifactURLs:
default: []
description: A list of HTTP URLs containing deployment artifacts.
description: A list of HTTP URLs containing deployment artifacts to be pulled.
Currently supports tarballs and RPM packages.
type: comma_delimited_list
DeployArtifactFILEs:
default: []
description: A list of files containing deployment artifacts to be pushed.
Currently supports tarballs and RPM packages.
type: comma_delimited_list
HostsEntry:
@ -373,6 +378,7 @@ outputs:
stack_action: {get_param: StackAction}
network_safe_defaults: {get_param: NetworkSafeDefaults}
deploy_artifact_urls: {get_param: DeployArtifactURLs}
deploy_artifact_files: {get_param: DeployArtifactFILEs}
hosts_entry: {get_param: HostsEntry}
primary_role_name: {{ primary_role_name }}
deploy_identifier: {get_param: DeployIdentifier}
@ -650,11 +656,13 @@ outputs:
docker_puppet_mount_host_puppet: DOCKER_PUPPET_MOUNT_HOST_PUPPET
tasks:
{% raw %}
- name: Deploy Artifacts
- name: Deploy pull Artifacts
tripleo_deploy_artifacts:
artifact_urls: "{{ deploy_artifact_urls }}"
artifact_urls: "{{ deploy_artifact_urls | default([]) }}"
artifact_paths: "{{ deploy_artifact_files | default([]) }}"
when:
- deploy_artifact_urls|default([])|length > 0
- ((deploy_artifact_urls | default([]) | length) > 0) or
((deploy_artifact_files | default([]) | length) > 0)
{% endraw %}
{%- for role in roles %}
- name: {{role.name}} Host prep block