Allows for the creation or updating of a Zone in Address Manager.
Attributes
| Attribute | Required/Optional | Description | Example |
|---|---|---|---|
configuration |
Optional | The name of the BlueCat Configuration to be used for the Zone. If this is not supplied, the Gateway default configuration name is used. | terraform_demo |
deployable |
Required | True or false choice on whether the zone is deployable | |
name |
Required | The name of the Zone | test_zone |
properties |
Optional | The properties of the IPv4 Block. | |
server_roles |
Required | Set up of server roles associated with this zone. Format is ["type,hostname",..] where type can be: FORWARDER, PRIMARY, PRIMARY_HIDDEN, HOME, RECURSION, SECONDARY, SECONDARY_STEALTH, STUB |
|
view |
Optional | The view that contains the details of the zone. If this is not supplied, the Gateway default view name is used. | Internal |
zone |
Optional | The Zone that contains the host record to be linked to the Zone (makes this zone a sub-zone). | bluecatnetworks.com |
Example of a Zone resource
resource "bluecat_zone" "test_zone" {
configuration = "terraform_demo"
view = "Internal"
zone = "bluecatnetworks.com"
deployable = 'True'
server_roles = ["PRIMARY,server1.com"]
properties = ""
}