Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
fix: removed validation for user data bootstrapping (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
FoSix authored Nov 16, 2022
1 parent 17525d6 commit b8270c8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
10 changes: 0 additions & 10 deletions modules/vmseries/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
10 changes: 0 additions & 10 deletions modules/vmss/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit b8270c8

Please sign in to comment.