Skip to content

Commit 8d11819

Browse files
committed
(PE-40222) Updating file to add a job to provision a VM to replace a failed node
1 parent 5cd9ef8 commit 8d11819

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.github/PE_XL_DR_2023_almalinux8.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,78 @@ jobs:
9999
cat request.json || true; echo
100100
echo ::endgroup::
101101
fi
102+
103+
test-backup: # to replace failed VM
104+
test-install:
105+
name: PE ${{ matrix.version }} ${{ matrix.architecture }} on ${{ matrix.image }}
106+
runs-on: ubuntu-20.04
107+
env:
108+
BOLT_GEM: true
109+
BOLT_DISABLE_ANALYTICS: true
110+
LANG: en_US.UTF-8
111+
strategy:
112+
fail-fast: false
113+
matrix:
114+
architecture: [extra-large-with-dr]
115+
version: [2023.8.0] # can change to test multiple versions once this one works
116+
image: [almalinux-cloud/almalinux-8]
117+
steps:
118+
- name: Checkout Source
119+
uses: actions/checkout@v4
120+
- name: Activate Ruby 2.7
121+
uses: ruby/setup-ruby@v1
122+
with:
123+
ruby-version: '2.7'
124+
bundler-cache: true
125+
- name: Print bundle environment
126+
if: ${{ github.repository_owner == 'puppetlabs' }}
127+
run: |
128+
echo ::group::info:bundler
129+
bundle env
130+
echo ::endgroup::
131+
- name: Provision test cluster
132+
timeout-minutes: 15
133+
run: |
134+
echo ::group::prepare
135+
mkdir -p $HOME/.ssh
136+
echo 'Host *' > $HOME/.ssh/config
137+
echo ' ServerAliveInterval 150' >> $HOME/.ssh/config
138+
echo ' ServerAliveCountMax 2' >> $HOME/.ssh/config
139+
bundle exec rake spec_prep
140+
echo ::endgroup::
141+
echo ::group::provision
142+
bundle exec bolt plan run peadm_spec::provision_test_cluster \
143+
--modulepath spec/fixtures/modules \
144+
provider=provision_service \
145+
image=${{ matrix.image }} \
146+
architecture=${{ matrix.architecture }} \
147+
--log-level trace
148+
echo ::endgroup::
149+
echo ::group::info:request
150+
cat request.json || true; echo
151+
echo ::endgroup::
152+
echo ::group::info:inventory
153+
sed -e 's/password: .*/password: "[redacted]"/' < spec/fixtures/litmus_inventory.yaml || true
154+
echo ::endgroup::
155+
- name: Install PE on test cluster
156+
timeout-minutes: 120
157+
run: |
158+
bundle exec bolt plan run peadm_spec::install_test_cluster \
159+
--inventoryfile spec/fixtures/litmus_inventory.yaml \
160+
--modulepath spec/fixtures/modules \
161+
architecture=${{ matrix.architecture }} \
162+
version=${{ matrix.version }} \
163+
console_password=${{ secrets.CONSOLE_PASSWORD }}
164+
- name: Tear down test cluster
165+
if: ${{ always() }}
166+
continue-on-error: true
167+
run: |-
168+
if [ -f spec/fixtures/litmus_inventory.yaml ]; then
169+
echo ::group::tear_down
170+
bundle exec rake 'litmus:tear_down'
171+
echo ::endgroup::
172+
echo ::group::info:request
173+
cat request.json || true; echo
174+
echo ::endgroup::
175+
fi
176+

0 commit comments

Comments
 (0)