@@ -279,7 +279,13 @@ jobs:
279279 bash \
280280 systemd-resolved \
281281 dnsutils \
282- iputils-ping || echo "Package installation failed"
282+ iputils-ping \
283+ gnupg \
284+ gnupg2 \
285+ gpg-agent \
286+ apt-utils \
287+ lsb-release \
288+ software-properties-common || echo "Package installation failed"
283289
284290 # Ensure critical commands are available
285291 echo "Testing required commands:"
@@ -288,6 +294,8 @@ jobs:
288294 docker exec $container file --version || echo "file command failed"
289295 docker exec $container tar --version || echo "tar command failed"
290296 docker exec $container which systemctl || echo "systemctl not found"
297+ docker exec $container which gpg || echo "gpg not found"
298+ docker exec $container which apt-key || echo "apt-key not found"
291299
292300 # Ensure /tmp directory exists and has correct permissions
293301 echo "Creating and setting permissions for /tmp directory:"
@@ -312,6 +320,7 @@ jobs:
312320 docker exec $container mkdir -p /etc/puppetlabs
313321 docker exec $container mkdir -p /opt/puppetlabs
314322 docker exec $container mkdir -p /etc/systemd/system
323+ docker exec $container mkdir -p /etc/apt/trusted.gpg.d
315324
316325 # Set up proper hostname resolution
317326 echo "Setting up hostname resolution:"
@@ -332,11 +341,18 @@ jobs:
332341 docker exec $container which tar || echo "tar command missing"
333342 docker exec $container which systemctl || echo "systemctl missing"
334343 docker exec $container which bash || echo "bash missing"
344+ docker exec $container which gpg || echo "gpg missing - apt-key will fail"
345+ docker exec $container which apt-key || echo "apt-key missing"
335346
336347 # Test if systemd is working properly
337348 echo "Testing systemd functionality:"
338349 docker exec $container systemctl --version || echo "systemctl not working"
339350 docker exec $container systemctl daemon-reload || echo "daemon-reload failed"
351+
352+ # Test GPG functionality
353+ echo "Testing GPG functionality:"
354+ docker exec $container gpg --version || echo "gpg not working"
355+ docker exec $container apt-key list || echo "apt-key not working"
340356 done
341357 echo ::endgroup::
342358 - name : Install PE on test cluster
0 commit comments