Skip to content

Commit 4e71912

Browse files
committed
Change boolean to string, update terraform version
1 parent b740455 commit 4e71912

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ resource "ibm_is_instance" "nsxalb_controller" {
123123
}
124124

125125
resource "ibm_is_floating_ip" "nsx_alb_floatingip" {
126-
count = var.floating_ip ? 1 : 0
126+
count = var.floating_ip == "true" ? 1 : 0
127127
name = "nsxalb-controller-${random_string.random_name_suffix.result}-fip"
128128
target = ibm_is_instance.nsxalb_controller.primary_network_interface[0].id
129129
}

variables.tf

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
variable "TF_VERSION" {
2-
default = "0.13"
2+
default = "0.14"
33
description = "terraform version required for schematics"
44
}
55
variable "ssh-key" {
@@ -28,7 +28,7 @@ variable "floating_ip" {
2828
description = "If set to true, a floating IP will be assigned to the instance. Unnecessary if you have a public gateway assigned to the subnet"
2929
default = false
3030
validation {
31-
condition = contains([true, false], var.floating_ip)
31+
condition = contains(["true", "false"], var.floating_ip)
3232
error_message = "Argument \"floating_ip\" must be either \"true\" or \"false\"."
3333
}
3434
}
@@ -41,16 +41,6 @@ variable "controller_size" {
4141
error_message = "Argument \"controller_size\" must be either \"small\", \"medium\", or \"large\"."
4242
}
4343
}
44-
variable "instance_type_map" {
45-
description = "A map from tshirt size to instance size, don't edit unless you need additional size customization"
46-
type = map
47-
default = {
48-
small = "bx2-8x32"
49-
medium = "cx2-16x32"
50-
large = "cx2-32x64"
51-
}
52-
}
53-
5444
variable "disk_size" {
5545
description = "The data disk size of the NSX ALB controller"
5646
type = string

0 commit comments

Comments
 (0)