fix(cicd): Remove LINSTOR pre-provisioning steps
Some checks failed
CD - Deploy Infrastructure / Terraform Validation (push) Successful in 1m38s
CD - Deploy Infrastructure / Deploy on pve1 (push) Failing after 8s
CD - Deploy Infrastructure / Deploy on pve2 (push) Failing after 8s
CD - Deploy Infrastructure / Deploy on pve3 (push) Successful in 1m53s
CD - Deploy Infrastructure / Validate K3s Cluster (push) Has been skipped
CD - Deploy Infrastructure / Deployment Notification (push) Failing after 0s

- 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
This commit is contained in:
Tellsanguis 2025-11-27 12:55:43 +01:00
parent 4628fc266f
commit 21b387de6d

View file

@ -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