zuul-jobs/roles/ensure-chart-testing/tasks/main.yaml
dg012m bb4ebf4720 Allow customization of helm charts repos
Added default variables to customize the repo name to download
the chart testing helm chart and config files

Change-Id: I37f8db66bdfef7d64e59a89ca8d99b12f95c1be2
2021-02-18 09:07:06 +00:00

37 lines
812 B
YAML

---
- name: Install pip
include_role:
name: ensure-pip
- name: Install Python dependencies
become: true
pip:
name:
- yamale==1.8.0
- yamllint==1.13.0
- name: Install chart-testing
become: true
unarchive:
remote_src: true
src: "{{ ensure_chart_testing_repo_name_helm_chart }}/v{{ chart_testing_version }}/chart-testing_{{ chart_testing_version }}_linux_amd64.tar.gz"
dest: /usr/local/bin
- name: Setup /etc/ct
become: true
file:
path: /etc/ct
state: directory
mode: 0755
- name: Install configuration files
become: true
get_url:
url: "{{ ensure_chart_testing_repo_name_config }}/v{{ chart_testing_version }}/etc/{{ zj_item }}"
dest: "/etc/ct/{{ zj_item }}"
loop:
- chart_schema.yaml
- lintconf.yaml
loop_control:
loop_var: zj_item