File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
environments/skeleton/{{cookiecutter.environment}}/terraform Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ resource "openstack_compute_instance_v2" "compute" {
50
50
k3s_server = var.k3s_server
51
51
}
52
52
53
- availability_zone = var. match_ironic_node ? " ${ var . availability_zone } ::${ var . baremetal_nodes [each . key ]} " : var . availability_zone
53
+ availability_zone = var. match_ironic_node ? " ${ var . availability_zone } ::${ var . baremetal_nodes [each . key ]} " : null
54
54
55
55
user_data = <<- EOF
56
56
#cloud-config
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ variable "match_ironic_node" {
85
85
}
86
86
87
87
variable availability_zone {
88
- description = " Name of availability zone. NB using ZONE:HOST or ZONE::NODE is not supported if setting match_ironic_node "
88
+ description = " Name of availability zone - ignored unless match_ironic_node is true "
89
89
type = string
90
90
default = " nova"
91
91
}
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ resource "openstack_compute_instance_v2" "login" {
148
148
k3s_server = [for n in openstack_compute_instance_v2 . control [" control" ]. network : n . fixed_ip_v4 if n . access_network ][0 ]
149
149
}
150
150
151
- availability_zone = each. value . match_ironic_node ? " ${ each . value . availability_zone } ::${ data . external . baremetal_nodes . result [each . key ]} " : each . value . availability_zone
151
+ availability_zone = each. value . match_ironic_node ? " ${ each . value . availability_zone } ::${ data . external . baremetal_nodes . result [each . key ]} " : null
152
152
153
153
user_data = <<- EOF
154
154
#cloud-config
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ variable "login_nodes" {
36
36
Required:
37
37
flavor: String flavor name
38
38
Optional:
39
- availability_zone: String, name of availability zone. NB using ZONE:HOST or ZONE::NODE is not supported if setting match_ironic_node
40
39
match_ironic_node: Bool, whether to launch instances on the Ironic node of the same name as this cluster node
40
+ availability_zone: String, name of availability zone - ignored unless match_ironic_node is true
41
41
EOF
42
42
}
43
43
You can’t perform that action at this time.
0 commit comments