initial template v1
This commit is contained in:
@@ -1,11 +1,20 @@
|
||||
output "vm_name" {
|
||||
value = var.vm_name
|
||||
}
|
||||
|
||||
output "vm_ipv4_address" {
|
||||
value = module.vm.vm_ipv4_address
|
||||
output "vm_ipv4_addresses" {
|
||||
value = {
|
||||
for k, m in module.vm : k => m.vm_ipv4_address
|
||||
}
|
||||
}
|
||||
|
||||
output "vm_tags" {
|
||||
value = local.all_tags
|
||||
value = {
|
||||
for k, m in module.vm : k => concat(
|
||||
try(local.instance_map[k].vm_tags, []),
|
||||
["terraform", "docker", local.instance_map[k].service_name, "ip-${replace(m.vm_ipv4_address, ".", "-")}"]
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
output "service_names" {
|
||||
value = {
|
||||
for k, cfg in local.instance_map : k => cfg.service_name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user