From b8270c89d32a44f51efbe7c2646f1336c188bc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pawl=C4=99ga?= <42772730+FoSix@users.noreply.github.com> Date: Wed, 16 Nov 2022 16:05:24 +0100 Subject: [PATCH] fix: removed validation for user data bootstrapping (#209) --- modules/vmseries/variables.tf | 10 ---------- modules/vmss/variables.tf | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/modules/vmseries/variables.tf b/modules/vmseries/variables.tf index 13549106..178fb719 100644 --- a/modules/vmseries/variables.tf +++ b/modules/vmseries/variables.tf @@ -200,16 +200,6 @@ variable "bootstrap_options" { EOF default = "" type = string - validation { - condition = alltrue([ - for v in var.bootstrap_options == "" ? [] : split(";", var.bootstrap_options) : - contains( - ["storage-account", "access-key", "file-share", "share-directory", "type", "ip-address", "default-gateway", "netmask", "ipv6-address", "ipv6-default-gateway", "hostname", "panorama-server", "panorama-server-2", "tplname", "dgname", "dns-primary", "dns-secondary", "vm-auth-key", "op-command-modes", "op-cmd-dpdk-pkt-io", "plugin-op-commands", "dhcp-send-hostname", "dhcp-send-client-id", "dhcp-accept-server-hostname", "dhcp-accept-server-domain", "auth-key", "vm-series-auto-registration-pin-value", "vm-series-auto-registration-pin-id"], - split("=", v)[0] - ) - ]) - error_message = "Error in validating bootstrap_options, for details see variable description." - } } variable "diagnostics_storage_uri" { diff --git a/modules/vmss/variables.tf b/modules/vmss/variables.tf index 671b1389..7002c202 100644 --- a/modules/vmss/variables.tf +++ b/modules/vmss/variables.tf @@ -393,16 +393,6 @@ variable "bootstrap_options" { EOF default = "" type = string - validation { - condition = alltrue([ - for v in var.bootstrap_options == "" ? [] : split(";", var.bootstrap_options) : - contains( - ["storage-account", "access-key", "file-share", "share-directory", "type", "ip-address", "default-gateway", "netmask", "ipv6-address", "ipv6-default-gateway", "hostname", "panorama-server", "panorama-server-2", "tplname", "dgname", "dns-primary", "dns-secondary", "vm-auth-key", "op-command-modes", "op-cmd-dpdk-pkt-io", "plugin-op-commands", "dhcp-send-hostname", "dhcp-send-client-id", "dhcp-accept-server-hostname", "dhcp-accept-server-domain", "auth-key", "vm-series-auto-registration-pin-value", "vm-series-auto-registration-pin-id"], - split("=", v)[0] - ) - ]) - error_message = "Error in validating bootstrap_options, for details see variable description." - } } variable "diagnostics_storage_uri" {