Page MenuHomeSoftware Heritage

proxmox/terraform: Avoid variables duplication

Authored by ardumont on Aug 2 2019, 10:43 PM.



Sole pattern found to avoid duplication.

This defines once the variables (configuration) needed both in the main definition and in the
module. When calling the module, we then pass along that configuration to the module call [1]


Depends on D1808

Test Plan
terraform init
terraform plan
terraform apply

output (Nothing has changed \m/)

$ terraform apply
proxmox_vm_qemu.gateway: Refreshing state... (ID: orsay/qemu/109)
proxmox_vm_qemu.node: Refreshing state... (ID: orsay/qemu/115)
proxmox_vm_qemu.node: Refreshing state... (ID: orsay/qemu/114)

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.


db0_summary =
hostname: db0
network: ip=,gw= macaddr=3A:65:31:7C:24:17

storage0_summary =
hostname: storage0
network: ip=,gw= macaddr=CA:73:7F:ED:F9:01

Diff Detail

rSPRE sysadm-provisioning
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

ardumont created this revision.Aug 2 2019, 10:43 PM
ardumont edited the summary of this revision. (Show Details)Aug 2 2019, 10:48 PM
vlorentz accepted this revision.Aug 5 2019, 10:40 AM
This revision is now accepted and ready to land.Aug 5 2019, 10:40 AM
This revision was automatically updated to reflect the committed changes.