Fix variable/output sort check

This commit is contained in:
Julio Castillo
2022-11-18 17:48:16 +01:00
parent f26e8646a9
commit 2e700db8a7
30 changed files with 416 additions and 407 deletions

View File

@@ -14,6 +14,19 @@
* limitations under the License.
*/
variable "allow" {
description = "List of domains Squid will allow connections to."
type = list(string)
default = []
}
variable "clients" {
description = "List of CIDR ranges from which Squid will allow connections."
type = list(string)
default = []
}
variable "cloud_config" {
description = "Cloud config template path. If null default will be used."
type = string
@@ -26,10 +39,30 @@ variable "config_variables" {
default = {}
}
variable "squid_config" {
description = "Squid configuration path, if null default will be used."
variable "default_action" {
description = "Default action for domains not matching neither the allow or deny lists."
type = string
default = null
default = "deny"
validation {
condition = var.default_action == "deny" || var.default_action == "allow"
error_message = "Default action must be allow or deny."
}
}
variable "deny" {
description = "List of domains Squid will deny connections to."
type = list(string)
default = []
}
variable "files" {
description = "Map of extra files to create on the instance, path as key. Owner and permissions will use defaults if null."
type = map(object({
content = string
owner = string
permissions = string
}))
default = {}
}
variable "file_defaults" {
@@ -44,40 +77,8 @@ variable "file_defaults" {
}
}
variable "files" {
description = "Map of extra files to create on the instance, path as key. Owner and permissions will use defaults if null."
type = map(object({
content = string
owner = string
permissions = string
}))
default = {}
}
variable "allow" {
description = "List of domains Squid will allow connections to."
type = list(string)
default = []
}
variable "deny" {
description = "List of domains Squid will deny connections to."
type = list(string)
default = []
}
variable "clients" {
description = "List of CIDR ranges from which Squid will allow connections."
type = list(string)
default = []
}
variable "default_action" {
description = "Default action for domains not matching neither the allow or deny lists."
variable "squid_config" {
description = "Squid configuration path, if null default will be used."
type = string
default = "deny"
validation {
condition = var.default_action == "deny" || var.default_action == "allow"
error_message = "Default action must be allow or deny."
}
default = null
}