File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ resource "ibm_is_instance" "nsxalb_controller" {
123123}
124124
125125resource "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}
Original file line number Diff line number Diff line change 11variable "TF_VERSION" {
2- default = " 0.13 "
2+ default = " 0.14 "
33 description = " terraform version required for schematics"
44}
55variable "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-
5444variable "disk_size" {
5545 description = " The data disk size of the NSX ALB controller"
5646 type = string
You can’t perform that action at this time.
0 commit comments