Skip to content

Commit 501930f

Browse files
committed
(gh-20) Download with curl --fail instead of --fail-with-body
The --fail-with-body parameter was introduced into curl in in 7.76.0 - March 31 2021 (https://curl.se/changes.html). Older vms we are still testing on may have curls predating this version. For example, the rocky8/alma8 vm images have curl 7.61.1 - September 5 2018. Switching the --fail provides basically the same semantics, but without capturing the full response body in the file. Not trying to scrape the respone, atm, though, so this should be fine.
1 parent 9c75d24 commit 501930f

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
name: 'PR Testing with Nested VMs'
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
test-install-task:
14+
strategy:
15+
matrix:
16+
os:
17+
- [almalinux, '8']
18+
- [almalinux, '9']
19+
- [debian, '10']
20+
- [debian, '11']
21+
- [debian, '12']
22+
- [debian, '13', 'amd64', 'daily-latest']
23+
- [rocky, '8']
24+
- [rocky, '9']
25+
- [ubuntu, '18.04']
26+
- [ubuntu, '20.04']
27+
- [ubuntu, '22.04']
28+
- [ubuntu, '24.04']
29+
runs-on: ubuntu-22.04
30+
steps:
31+
- uses: actions/checkout@v4
32+
- id: install-bolt
33+
uses: ./.github/actions/bolt
34+
with:
35+
os-codename: jammy
36+
- id: vm-cluster
37+
uses: jpartlow/nested_vms@v1
38+
with:
39+
os: ${{ matrix.os[0] }}
40+
os-version: ${{ matrix.os[1] }}
41+
os-arch: ${{ matrix.os[2] || 'x86_64' }}
42+
image_version: ${{ matrix.os[3] }}
43+
host-root-access: true
44+
ruby-version: '3.3'
45+
install-openvox: false
46+
# Note: the cpu_mode is set to host-model for the sake of
47+
# el-9 which expects at least x86_64-2 arch. This depends on
48+
# the runner's architecture being sufficient, and there is
49+
# probably a better way to get this set on the libvirt
50+
# domain instead.
51+
vms: |-
52+
[
53+
{
54+
"role": "agent",
55+
"count": 1,
56+
"cpus": 2,
57+
"mem_mb": 4096,
58+
"cpu_mode": "host-model"
59+
}
60+
]
61+
- name: Run openvox_bootstrap::install task on nested vm
62+
run: |-
63+
bolt task run openvox_bootstrap::install --inventory kvm_automation_tooling/terraform/instances/inventory.test.yaml --targets test-agent-1
64+
- name: Verify openvox-agent is installed
65+
run: |-
66+
bolt command run \
67+
--inventory kvm_automation_tooling/terraform/instances/inventory.test.yaml --targets test-agent-1 \
68+
'[[ "$(/opt/puppetlabs/bin/puppet --version)" =~ [0-9]+\.[0-9]+\.[0-9]+ ]]'

0 commit comments

Comments
 (0)