Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163757
D1808.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D1808.id.diff
View Options
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
Details
Attached
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
Attached To
D1808: staging: Rework output to display a summary on nodes
Event Timeline
Log In to Comment