Skip to content

Commit 7c5acf8

Browse files
committed
tf style tweaks
1 parent 8419528 commit 7c5acf8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

environments/skeleton/{{cookiecutter.environment}}/tofu/control.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "openstack_networking_port_v2" "control" {
2525

2626
fixed_ip {
2727
subnet_id = data.openstack_networking_subnet_v2.cluster_subnet[each.key].id
28-
ip_address = (var.control_ip_addresses != {})? var.control_ip_addresses[each.key]: null
28+
ip_address = var.control_ip_addresses != {} ? var.control_ip_addresses[each.key] : null
2929
}
3030

3131
no_security_groups = lookup(each.value, "no_security_groups", false)

environments/skeleton/{{cookiecutter.environment}}/tofu/variables.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ variable "key_pair" {
2626

2727
variable "control_ip_addresses" {
2828
type = map(string)
29-
description = "Mapping of fixed IP addresses for control node, keyed by network name"
29+
description = <<-EOT
30+
Mapping of fixed IP addresses for control node, keyed by network name.
31+
The default means the cloud will select an address.
32+
EOT
3033
default = {}
3134
}
3235

0 commit comments

Comments
 (0)