zuul-jobs/roles/ensure-chart-testing/tasks/main.yaml
Mohammed Naser 72617b3cd5 ensure-chart-testing: install pip
In order for things to work properly, we need to make sure we at least
have pip installed.

Change-Id: I46e0593f0fa9042d866bfd53e5292251414693b0
2020-06-20 12:31:08 -04:00

36 lines
814 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: "https://github.com/helm/chart-testing/releases/download/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
- name: Install configuration files
become: true
get_url:
url: "https://raw.githubusercontent.com/helm/chart-testing/v{{ chart_testing_version }}/etc/{{ zj_item }}"
dest: "/etc/ct/{{ zj_item }}"
loop:
- chart_schema.yaml
- lintconf.yaml
loop_control:
loop_var: zj_item