mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-09-03 10:48:05 +00:00
fix(ci): install libguestfs-tools on nested PVE and mask test password
- prepare-test-vm.sh: install libguestfs-tools if not present on the fresh nested PVE before running virt-customize - Mask PVE_PASSWORD in logs via ::add-mask:: to prevent leaking Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -119,6 +119,9 @@ jobs:
|
|||||||
vm_name: pve-test-pve8
|
vm_name: pve-test-pve8
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Mask test password
|
||||||
|
run: echo "::add-mask::${PVE_PASSWORD}"
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Download module artifact
|
- name: Download module artifact
|
||||||
|
|||||||
@@ -29,11 +29,17 @@ echo "Downloading and customizing Debian cloud image on nested PVE..."
|
|||||||
${SSH_CMD} bash <<REMOTE
|
${SSH_CMD} bash <<REMOTE
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
# Ensure libguestfs-tools is available (not installed by default on fresh PVE)
|
||||||
|
if ! command -v virt-customize &>/dev/null; then
|
||||||
|
echo "Installing libguestfs-tools..."
|
||||||
|
apt-get update -qq && apt-get install -y -qq libguestfs-tools
|
||||||
|
fi
|
||||||
|
|
||||||
# Download the cloud image
|
# Download the cloud image
|
||||||
echo "Downloading Debian cloud image..."
|
echo "Downloading Debian cloud image..."
|
||||||
curl -sL -o /tmp/debian-cloud.qcow2 "${CLOUD_IMAGE_URL}"
|
curl -sL -o /tmp/debian-cloud.qcow2 "${CLOUD_IMAGE_URL}"
|
||||||
|
|
||||||
# Install qemu-guest-agent into the image using PVE's built-in libguestfs
|
# Install qemu-guest-agent into the image
|
||||||
echo "Installing qemu-guest-agent into image..."
|
echo "Installing qemu-guest-agent into image..."
|
||||||
virt-customize -a /tmp/debian-cloud.qcow2 \
|
virt-customize -a /tmp/debian-cloud.qcow2 \
|
||||||
--install qemu-guest-agent \
|
--install qemu-guest-agent \
|
||||||
|
|||||||
Reference in New Issue
Block a user