Page MenuHomeSoftware Heritage

D1808.id.diff
No OneTemporary

D1808.id.diff

diff --git a/proxmox/terraform/modules/node/outputs.tf b/proxmox/terraform/modules/node/outputs.tf
--- a/proxmox/terraform/modules/node/outputs.tf
+++ b/proxmox/terraform/modules/node/outputs.tf
@@ -1,11 +1,8 @@
-output name {
- value = "${proxmox_vm_qemu.node.name}"
-}
-
-output ip {
- value = "${proxmox_vm_qemu.node.network.*.ip}"
-}
+output summary {
+ value = <<EOF
-output macaddr {
- value = "${proxmox_vm_qemu.node.network.*.macaddr}"
+hostname: ${proxmox_vm_qemu.node.name}
+fqdn: ${proxmox_vm_qemu.node.name}.${var.domain}
+network: ${proxmox_vm_qemu.node.ipconfig0} macaddr=${lookup(proxmox_vm_qemu.node.network[0], "macaddr")}
+EOF
}
diff --git a/proxmox/terraform/staging.tf b/proxmox/terraform/staging.tf
--- a/proxmox/terraform/staging.tf
+++ b/proxmox/terraform/staging.tf
@@ -91,8 +91,8 @@
}
}
-output storage0_out {
- value = "${module.storage0.name} ${module.storage0.ip} ${module.storage0.macaddr}"
+output storage0_summary {
+ value = "${module.storage0.summary}"
}
module "db0" {
@@ -104,10 +104,10 @@
memory = "16384"
network = {
ip = "192.168.128.3"
+ macaddr = "3A:65:31:7C:24:17"
}
}
-
-output db0_out {
- value = "${module.db0.name} ${module.db0.ip} ${module.db0.macaddr}"
+output db0_summary {
+ value = "${module.db0.summary}"
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 2:46 PM (7 h, 43 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3221022

Event Timeline