From 21b387de6d792284e6569e36b12fd66961edcda5 Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Thu, 27 Nov 2025 12:55:43 +0100 Subject: [PATCH] fix(cicd): Remove LINSTOR pre-provisioning steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Supprime les étapes de création manuelle des ressources LINSTOR - Proxmox/Terraform gère automatiquement les ressources LINSTOR - Les ressources sont créées automatiquement lors du 'tofu apply' - Le script Python n'est plus nécessaire pour le workflow --- .forgejo/workflows/deploy.yml | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 45685f3..c57c0e1 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -81,19 +81,6 @@ jobs: if ! command -v tofu &> /dev/null; then curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version 1.10.7 fi - - name: Setup Python and dependencies - run: | - apt-get update && apt-get install -y python3 python3-pip - pip3 install --break-system-packages requests urllib3 - - name: Prepare LINSTOR resources for pve1 - run: | - # Exécute le script dans le container, qui utilisera l'API Proxmox pour gérer LINSTOR - python3 scripts/manage_linstor_resources.py \ - --terraform-dir terraform \ - --api-url "${{ secrets.PROXMOX_API_URL || 'https://192.168.100.10:8006/api2/json' }}" \ - --token-id "${{ secrets.PROXMOX_TOKEN_ID }}" \ - --token-secret "${{ secrets.PROXMOX_TOKEN_SECRET }}" \ - --verbose - name: Terraform Apply on pve1 run: | cd terraform/pve1 @@ -129,19 +116,6 @@ jobs: if ! command -v tofu &> /dev/null; then curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version 1.10.7 fi - - name: Setup Python and dependencies - run: | - apt-get update && apt-get install -y python3 python3-pip - pip3 install --break-system-packages requests urllib3 - - name: Prepare LINSTOR resources for pve2 - run: | - # Exécute le script dans le container, qui utilisera l'API Proxmox pour gérer LINSTOR - python3 scripts/manage_linstor_resources.py \ - --terraform-dir terraform \ - --api-url "${{ secrets.PROXMOX_API_URL || 'https://192.168.100.10:8006/api2/json' }}" \ - --token-id "${{ secrets.PROXMOX_TOKEN_ID }}" \ - --token-secret "${{ secrets.PROXMOX_TOKEN_SECRET }}" \ - --verbose - name: Terraform Apply on pve2 run: | cd terraform/pve2