-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add zone creation details to readme and inline explanation
- Loading branch information
1 parent
319daf7
commit 204405b
Showing
4 changed files
with
108 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,58 @@ | ||
variable "zone_name" { | ||
# The name of the management zone - retrieved as the identifying key within the 'management_zones' block of the config.yaml | ||
type = string | ||
} | ||
|
||
#variable "zone_vars" { | ||
# type = any | ||
#} | ||
|
||
|
||
variable "zone_vars" { | ||
#This variable consists of the content of the per-named Management Zone key from the config.yaml | ||
#The provided values are structured into an object, containing further nested objects, as below | ||
type = object({ | ||
description = optional(string) | ||
legacy_id = optional(string) | ||
|
||
rules = optional(map(object({ | ||
enabled = bool | ||
type = string | ||
entity_selector = optional(string, "") | ||
attribute_rule = optional(object({ | ||
azure_to_pgpropagation = optional(bool) | ||
azure_to_service_propagation = optional(bool) | ||
custom_device_group_to_custom_device_propagation = optional(bool) | ||
host_to_pgpropagation = optional(bool) | ||
pg_to_host_propagation = optional(bool) | ||
pg_to_service_propagation = optional(bool) | ||
service_to_host_propagation = optional(bool) | ||
service_to_pgpropagation = optional(bool) | ||
entity_type = string | ||
attribute_conditions = object({ | ||
condition = object({ | ||
key = string | ||
operator = string | ||
case_sensitive = optional(bool) | ||
dynamic_key = optional(string) | ||
dynamic_key_source = optional(string) | ||
entity_id = optional(string) | ||
enum_value = optional(string) | ||
integer_value = optional(number) | ||
string_value = optional(string) | ||
tag = optional(string) | ||
}) | ||
# The below attributes are contained in an individual 'rule' block created by the main TF file | ||
# The 'rule' itself is dynamic and not defined as an object here, for cases where 'rules' are not defined | ||
# ('Rules' are optional, but when set must contain at least one 'rule' block) | ||
enabled = bool | ||
type = string | ||
entity_selector = optional(string, "") | ||
attribute_rule = optional(object({ | ||
azure_to_pgpropagation = optional(bool) | ||
azure_to_service_propagation = optional(bool) | ||
custom_device_group_to_custom_device_propagation = optional(bool) | ||
host_to_pgpropagation = optional(bool) | ||
pg_to_host_propagation = optional(bool) | ||
pg_to_service_propagation = optional(bool) | ||
service_to_host_propagation = optional(bool) | ||
service_to_pgpropagation = optional(bool) | ||
entity_type = string | ||
attribute_conditions = object({ | ||
condition = object({ | ||
key = string | ||
operator = string | ||
case_sensitive = optional(bool) | ||
dynamic_key = optional(string) | ||
dynamic_key_source = optional(string) | ||
entity_id = optional(string) | ||
enum_value = optional(string) | ||
integer_value = optional(number) | ||
string_value = optional(string) | ||
tag = optional(string) | ||
}) | ||
}) | ||
})) | ||
dimension_rule = optional(object({ | ||
applies_to = string | ||
dimension_conditions = optional(object({ | ||
condition = object({ | ||
condition_type = string | ||
rule_matcher = string | ||
value = string | ||
key = optional(string) | ||
}) | ||
})) | ||
dimension_rule = optional(object({ | ||
applies_to = string | ||
dimension_conditions = optional(object({ | ||
condition = object({ | ||
condition_type = string | ||
rule_matcher = string | ||
value = string | ||
key = optional(string) | ||
}) | ||
})) | ||
})) | ||
}))) | ||
}) | ||
})) | ||
}))) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters