|
5 | 5 | vars: |
6 | 6 | results_path_local: "{{ lookup('env', 'PWD') }}" |
7 | 7 | rally_image: 'stackhpc/docker-rally' |
8 | | - rally_tag: v1.4-dev |
| 8 | + rally_tag: v1.5.0 |
9 | 9 | rally_image_full: "{{ rally_docker_registry }}/{{ rally_image }}:{{ rally_tag }}" |
10 | 10 | rally_no_sensitive_log: true |
11 | 11 | # This ensures you get the latest image if the image is updated |
|
26 | 26 | suffix: rally-results |
27 | 27 | register: results_path_remote |
28 | 28 |
|
| 29 | + - name: Create temporary CA certificate directory |
| 30 | + ansible.builtin.tempfile: |
| 31 | + state: directory |
| 32 | + suffix: rally-cacert |
| 33 | + register: cacert_path_remote |
| 34 | + when: tempest_cacert is defined |
| 35 | + |
29 | 36 | - name: Ensure docker user has permissions to write to results directory |
30 | 37 | file: |
31 | 38 | path: "{{ results_path_remote.path }}" |
|
80 | 87 | become: true |
81 | 88 | when: tempest_accounts_path is defined |
82 | 89 |
|
| 90 | + - name: Copy tempest CA certificate to remote host |
| 91 | + copy: |
| 92 | + src: "{{ tempest_cacert }}" |
| 93 | + dest: "{{ cacert_path_remote.path }}/" |
| 94 | + owner: "65500" |
| 95 | + group: "1000" |
| 96 | + become: true |
| 97 | + when: tempest_cacert is defined |
| 98 | + |
83 | 99 | - name: Run tempest |
84 | 100 | command: |- |
85 | 101 | docker run --rm --entrypoint=/usr/bin/rally-verify-wrapper.sh |
|
101 | 117 | {% if tempest_accounts_path is defined -%} |
102 | 118 | -v {{ accounts_path_remote }}:/home/rally/tempest-accounts:ro |
103 | 119 | {% endif -%} |
| 120 | + {% if tempest_cacert is defined -%} |
| 121 | + -v {{ cacert_path_remote.path }}:/usr/local/share/ca-certificates:ro |
| 122 | + {% endif -%} |
104 | 123 | --network host |
105 | 124 | {{ rally_image_full }} |
106 | 125 | environment: |
|
148 | 167 | path: "{{ results_path_remote.path }}" |
149 | 168 | state: absent |
150 | 169 | when: results_path_remote.path is defined |
| 170 | + |
| 171 | + - name: cleanup CA certificate |
| 172 | + file: |
| 173 | + path: "{{ cacert_path_remote.path }}" |
| 174 | + state: absent |
| 175 | + when: cacert_path_remote.path is defined |
0 commit comments