From 6628870938f68ec07de62ae92d3af2d6ef8314c8 Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Thu, 27 Nov 2025 12:44:56 +0100 Subject: [PATCH] fix(cicd): Use IP address instead of hostname for LINSTOR host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace 'thinkpad' with 192.168.100.30 - Docker containers cannot resolve local hostnames - Résout l'erreur 'Could not resolve hostname thinkpad' --- .forgejo/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 01b8361..56dc3c8 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -87,7 +87,8 @@ jobs: - name: Prepare LINSTOR resources for pve1 run: | # Exécute le script dans le container, qui utilisera SSH pour communiquer avec LINSTOR - python3 scripts/manage_linstor_resources.py --terraform-dir terraform --remote-host thinkpad --verbose + # Utilise l'IP au lieu du hostname car le container Docker ne peut pas résoudre les noms locaux + python3 scripts/manage_linstor_resources.py --terraform-dir terraform --remote-host 192.168.100.30 --verbose - name: Terraform Apply on pve1 run: | cd terraform/pve1 @@ -129,7 +130,8 @@ jobs: - name: Prepare LINSTOR resources for pve2 run: | # Exécute le script dans le container, qui utilisera SSH pour communiquer avec LINSTOR - python3 scripts/manage_linstor_resources.py --terraform-dir terraform --remote-host thinkpad --verbose + # Utilise l'IP au lieu du hostname car le container Docker ne peut pas résoudre les noms locaux + python3 scripts/manage_linstor_resources.py --terraform-dir terraform --remote-host 192.168.100.30 --verbose - name: Terraform Apply on pve2 run: | cd terraform/pve2