From 1792180b40c338ea7908185cca6c38b0bf8eb6c7 Mon Sep 17 00:00:00 2001 From: AlxFrst Date: Tue, 14 May 2024 15:42:05 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20workflow=20Terrafor?= =?UTF-8?q?m=20pour=20inclure=20la=20commande=20"terraform=20apply"=20au?= =?UTF-8?q?=20lieu=20de=20"terraform=20destroy"=20et=20mise=20=C3=A0=20jou?= =?UTF-8?q?r=20du=20nombre=20de=20n=C5=93uds=20ma=C3=AEtres=20et=20ouvrier?= =?UTF-8?q?s=20dans=20la=20configuration=20de=20production?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/terraform.yml | 8 ++++---- configurations/prod.tfvars | 5 +++++ configurations/secrets.tfvars.exemple | 3 --- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index ec57c2a..d1e0ba5 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -50,9 +50,9 @@ jobs: - name: Terraform Plan run: terraform plan -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" - # - name: Terraform apply - # run: terraform apply -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" + - name: Terraform apply + run: terraform apply -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" - - name: Terraform destroy - run: terraform destroy -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" + # - name: Terraform destroy + # run: terraform destroy -auto-approve -var-file="secrets_prod.tfvars" -var-file="configurations/prod.tfvars" diff --git a/configurations/prod.tfvars b/configurations/prod.tfvars index 3ad71c7..9600930 100644 --- a/configurations/prod.tfvars +++ b/configurations/prod.tfvars @@ -1,3 +1,8 @@ +# Proxmox variables +proxmox_node_name="rocket" # The name of the Proxmox node +proxmox_bridge_name="vmbr0" # The name of the Proxmox bridge +proxmox_tls_insecure=true # Whether to ignore TLS errors + # Network variables ip_address_start="192.168.1" # The first three octets of the IP address ip_address_gateway="192.168.1.1" # The gateway IP address diff --git a/configurations/secrets.tfvars.exemple b/configurations/secrets.tfvars.exemple index a3e05f5..4f21e08 100644 --- a/configurations/secrets.tfvars.exemple +++ b/configurations/secrets.tfvars.exemple @@ -2,9 +2,6 @@ proxmox_api_url="https://xxxxxx/api2/json" # The URL of the Proxmox API proxmox_token_id="root@pam!terraform" # The token ID proxmox_token_secret="xxxxxxx" # The token secret -proxmox_node_name="pve01" # The name of the Proxmox node -proxmox_bridge_name="vmbr0" # The name of the Proxmox bridge -proxmox_tls_insecure=true # Whether to ignore TLS errors # ssh key ssh_private_key=""