diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-01-26 15:30:12 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-01-26 15:30:12 +0100 |
commit | 283ecef8914e6397b4a8b88e4a31b2908d4aa078 (patch) | |
tree | 7e3556d0ee37a8e61569d047a4bae8cdef5b6302 /ansible/roles/chartmuseum/tasks | |
parent | 8b2864df4f19783062f3a460227994032d923ff4 (diff) |
Add 'chartmuseum' role
Added 'chartmuseum' role which runs Helm repository server using
chartmuseum.
Change-Id: I8745cd7e602e147fb656297e0afb8e82a5d058ff
Issue-ID: OOM-2665
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/chartmuseum/tasks')
-rw-r--r-- | ansible/roles/chartmuseum/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ansible/roles/chartmuseum/tasks/main.yml b/ansible/roles/chartmuseum/tasks/main.yml new file mode 100644 index 00000000..d7121a53 --- /dev/null +++ b/ansible/roles/chartmuseum/tasks/main.yml @@ -0,0 +1,20 @@ +--- +- name: Install chartmuseum + copy: + src: "{{ app_data_path }}/downloads/chartmuseum" + dest: "{{ helm_bin_dir }}" + remote_src: true + mode: 0755 + +- name: Create storage directory for chartmuseum + file: + path: "{{ chartmuseum_storage_dir }}" + state: directory + +- name: Run Helm chart repository + shell: "{{ helm_bin_dir }}/chartmuseum --storage local --storage-local-rootdir {{ chartmuseum_storage_dir }} -port {{ chartmuseum_port }} &" + async: 10 + poll: 3 + register: chart_repository + changed_when: "'address already in use' not in chart_repository.stderr" + failed_when: "'Starting ChartMuseum' not in chart_repository.stderr" |