Skip to content

Commit

Permalink
Mise à jour du workflow Terraform pour inclure la commande "terraform…
Browse files Browse the repository at this point in the history
… apply" au lieu de "terraform destroy" et mise à jour du nombre de nœuds maîtres et ouvriers dans la configuration de production
  • Loading branch information
AlxFrst committed May 14, 2024
1 parent ac8d8f7 commit 1792180
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

5 changes: 5 additions & 0 deletions configurations/prod.tfvars
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 0 additions & 3 deletions configurations/secrets.tfvars.exemple
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down

0 comments on commit 1792180

Please sign in to comment.