diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-02-03 15:01:34 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-02-03 15:01:34 +0100 |
commit | 5ee1e950f1e2be10762f5f08fe82bb7bd3a68bb4 (patch) | |
tree | ec7095c8cd6ae287f133f0c3e3582e937eb6ade8 /ansible/test/roles/prepare-rke/tasks/infra.yml | |
parent | 31d3a265b3f7613f1af536c4a04f119ea83d9794 (diff) |
Change 'rke' role testing strategy
So far Molecule framework setup allowed full rke cluster deployment
in testing env but since rke cluster often fails to deploy in resource
constrained CI environment this change switches testing strategy to
only simulate 'rke up' operation.
Change-Id: Ia221da6666d558e086cd24155f5bd81237d82388
Issue-ID: OOM-2665
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/test/roles/prepare-rke/tasks/infra.yml')
-rw-r--r-- | ansible/test/roles/prepare-rke/tasks/infra.yml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ansible/test/roles/prepare-rke/tasks/infra.yml b/ansible/test/roles/prepare-rke/tasks/infra.yml index 8aa93ca7..0a0b9273 100644 --- a/ansible/test/roles/prepare-rke/tasks/infra.yml +++ b/ansible/test/roles/prepare-rke/tasks/infra.yml @@ -4,11 +4,22 @@ path: "{{ app_data_path }}/downloads" state: directory +- name: "Create rke binary wrapper" + template: + src: rke.j2 + dest: "{{ app_data_path }}/downloads/rke_linux-amd64" + mode: 0755 + - name: "Install rke-{{ rke_version }}" - command: "curl --connect-timeout 10 -L https://github.com/rancher/rke/releases/download/v{{ rke_version }}/rke_linux-amd64 -o {{ app_data_path }}/downloads/rke_linux-amd64" + command: "curl --connect-timeout 10 -L https://github.com/rancher/rke/releases/download/v{{ rke_version }}/rke_linux-amd64 -o {{ app_data_path }}/downloads/rke_linux-amd64_real" register: result retries: 10 delay: 1 until: not result.failed args: warn: false + +- name: "Ensure downloaded rke binary has correct file mode" + file: + path: "{{ app_data_path }}/downloads/rke_linux-amd64_real" + mode: 0755 |