Skip to content

Commit

Permalink
Pass extra ansible vars to kickstart task
Browse files Browse the repository at this point in the history
  • Loading branch information
jordigilh committed Feb 4, 2022
1 parent ddec12f commit 4c83fb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions charts/rfe-pipelines/templates/rfe-kickstart-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ spec:
- name: kickstart-path
description: Path containing the kickstart
type: string
- name: extra-template-variables
description: Additional template variables to be replaced in the kickstart.ks
type: string
workspaces:
- name: shared-workspace
tasks:
Expand Down Expand Up @@ -73,6 +76,8 @@ spec:
value: /workspace/workspace/kickstarts/$(params.kickstart-path)
- name: kickstart-destination-dir
value: /workspace/workspace/kickstarts
- name: extra-template-variables
value: $(params.extra-template-variables)
runAfter:
- "git-clone-kickstarts"
- "git-clone-tooling"
Expand Down
6 changes: 3 additions & 3 deletions charts/rfe-pipelines/templates/upload-kickstart-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ spec:
- name: kickstart-destination-dir
description: Directory Kickstart file should be created
type: string
- name: extra-ansible-variables
description: Extra Ansible variables
- name: extra-template-variables
description: Extra template variables
default: ""
type: string
results:
Expand All @@ -42,7 +42,7 @@ spec:
-e kickstart_destination_dir=$(params.kickstart-destination-dir) \
-e artifact_repository_url_output_file=$(results.artifact-repository-storage-url.path) \
-e storage_url_output_file=$(results.serving-storage-url.path) \
$(params.extra-ansible-variables) \
-e "$(params.extra-template-variables)" \
playbooks/upload-kickstart.yaml
command:
- /bin/bash
Expand Down

0 comments on commit 4c83fb9

Please sign in to comment.