Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ virtual_machines:
arch: ppc64le
ssh_key_file: "~/.ssh/acs-ppc64le-rsa.prv"
images:
- rhel-88-05102023
- rhel-96-04282025
- rhel-10-04252025
container_engine: podman

rhel-sap:
project: rhel-sap-cloud
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/create-vm/tasks/create-ppc64le-vm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
- job_id_{{ job_id }}
- platform_{{ test_platform }}
- vm_arch_ppc64le
- container_engine_{{ container_engine }}
ansible_ssh_extra_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: "{{ vm_ssh_key_file }}"
vm_config: "{{ vm_config }}"
Expand Down
6 changes: 4 additions & 2 deletions ansible/roles/run-test-target/tasks/pull-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
delegate_to: localhost

- name: Pull QA images
command: "{{ 'sudo' if runtime_as_root else '' }} {{ runtime_command }} pull {{ item.value }}-{{ qa_tag }}"
become: "{{ runtime_as_root }}"
command: "{{ runtime_command }} pull {{ item.value }}-{{ qa_tag }}"
loop: "{{ images.qa | dict2items }}"
# parallel for speeeeed
async: 300
Expand All @@ -21,7 +22,8 @@
ignore_errors: true

- name: Pull non-QA images
command: "{{ 'sudo' if runtime_as_root else '' }} {{ runtime_command }} pull {{ item.value }}"
become: "{{ runtime_as_root }}"
command: "{{ runtime_command }} pull {{ item.value }}"
loop: "{{ images.non_qa | dict2items }}"
# parallel for speeeeed
async: 300
Expand Down
12 changes: 9 additions & 3 deletions ansible/roles/run-test-target/tasks/test-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@
become: "{{ runtime_as_root }}"
shell:
cmd: |
if [[ -f "/run/containers/0/auth.json" ]]; then
mkdir -p ~/.docker/
cp "/run/containers/0/auth.json" ~/.docker/config.json
fi
if [[ -f "${XDG_RUNTIME_DIR:-}/containers/auth.json" ]]; then
AUTH_FILE="${XDG_RUNTIME_DIR:-}/containers/auth.json"
elif [[ -f "/run/containers/0/auth.json" ]]; then
AUTH_FILE="/run/containers/0/auth.json"
else
echo >&2 "No valid auth.json file found"
exit 1
fi
cp "${AUTH_FILE}" ~/.docker/config.json
creates: ~/.docker/config.json
when: runtime_command == "podman"

Expand Down
2 changes: 1 addition & 1 deletion ansible/vars/ppc64le.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

#rhel-8.8-05102023
# ppc64le VM configuration
pi_name: "{{ vm_name }}"
sys_type: s1022
proc_type: shared
Expand Down
Loading