-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added support for ZoneDelegated object (#379) --------- Co-authored-by: Neil Garratt <[email protected]> Co-authored-by: Piper Dougherty <[email protected]> * Next available (#387) * Implement next_available network support for NW and NW conatiner * adding next_available_ip support for RecordAAAA and RecordHost in terraform * adding support for next-available-ip for hostrecord and record:aaaa * adding aliases field on host record (#388) * A record implementation for next available ip (#385) * Test cases for a record next-available-ip (#391) * test cases for a record and aaaa record * test cases for aaaa record - next_available_ip * validation if aliases have domain name suffix if dns is enabled and test cases for alias field (#392) * test cases for a record and aaaa record * test cases for aaaa record - next_available_ip * validation if aliases have domain name suffix if dns is enabled and test cases for alias field * aliases for ip association * Fix for NPA-193 (#393) * adding other fields for host-record (#394) * adding other fields for host-record * change next-available-ip function in recordA * Host record after rebasing * bugFix for hostRecord ip_addr_type and disable fields (#396) * Fix for NPA-195 (#395) * Fix for NPA-193 * Fix for NPA-195--->Added a function to handle leading zeros for IPV6 * handling leading zeros for cidr in network container * Update resource_infoblox_ip_allocation.go Added missing braces for statfunc * NPA-199: fix- updating error message and ip_association_test file (#397) * Npa 201 (#399) * NPA-199: fix- updating error message and ip_association_test file * NPA-201 fix: setting CIDR value while dynamic allocation of NW, NWC and updating documentation for filter_params fields and error msg for alias format * removing disable field from AAAA record * alias field added in datasource file (#400) modified the test cases for host record DiffSuppressFunc added to handle the plan difference between configuration file and state file * test cases for host record and network container for next available IP (#398) * test cases for host record and network container for next available IP * revert the changes for cidr and added IPV6 test case for network container * Fix for NPA-155 --> TypeSet in the schema for delegate_to field changed to TypeList (#402) * NPA-205 fix: adding network_view in object_parameters map (#401) * NPA-207 fix: adding disable field for host record datasource (#403) * Fix for NPA-208 (#404) * NPA-209 Fix: removing ipv4_addr and ipv6_addr fields from statefile for dynamic allocation using filter_params (#405) * DiffSupress function changes for alias field in host record when dns is disabled (#406) * DiffSupress function changes for alias field in host record when dns is disabled * Updating ttl value : ttl value being de-referenced in the assoication when its nil * Npa 200 fix: Deleting aliases field when DNS is enabled (#408) * updating documentation and adding examples for next-available and zone-delegated * NPA-200 fix: deleting aliases when dns is enabled * NPA-211 Fix: adding IPV4 as default value for ip_address_type (#409) * formatting examples for next-available and zone-delegated (#410) * not setting ip_address_type and object fields when filter_params is not used (#413) * setting ip_addr_type, object fields to null during import and disable fields. (#414) * setting ip_addr_type, object fields to null during import and disable field during import and read * adding error check for d.set * updating docs folder and ReadME for zone-delegated and next-available (#412) * updating docs folder and ReadME for zone-delegated and next-available * updating review comments for documentation * removing default values for data source example * Updated vendor directory (#416) * correction for the typo in error message for A record (#411) --------- Co-authored-by: Aish-sp <[email protected]> Co-authored-by: Neil Garratt <[email protected]> Co-authored-by: Piper Dougherty <[email protected]> Co-authored-by: Chaithra <[email protected]>
- Loading branch information
1 parent
05ca000
commit ec4b1ea
Showing
233 changed files
with
30,847 additions
and
4,298 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 |
---|---|---|
@@ -0,0 +1,111 @@ | ||
# Zone Delegated Data Source | ||
|
||
Use the `infoblox_zone_delegated` data source to retrieve the following information about a delegated DNS zone from the corresponding object in NIOS: | ||
|
||
* `fqdn`: The name of this DNS zone. For a reverse zone, this is in “address/cidr” format. Example: `11.10.0.0/24`. For other zones, this is in FQDN format. Example: `demozone.com` This value can be in unicode format. | ||
* `view`: The name of the DNS view in which the zone resides. Example: `external`. | ||
* `comment`: The Description of Delegated Zone Object. Example: `random delegated zone`. | ||
* `ext_attrs`: The set of extensible attributes of the record, if any. The content is formatted as string of JSON map. Example: `"{\"Location\":\"unknown\",\"TestEA\":\"ZoneTesting\"}"`. | ||
* `zone_format`: Determines the format of corresponding zone. Valid values are `FORWARD`, `IPV4` and `IPV6`. | ||
* `ns_group`: Specifies the name server group that serves DNS for this zone. Example: `demoGroup`. | ||
* `disable`: Specifies whether the zone is disabled. | ||
* `locked`: The flag that restricts other administrators from making any changes. Note that this flag is for administration purposes only. The zone will continue to serve DNS data even when it is locked. Example: `false`. | ||
* `delegated_ttl`: The TTL value for the delegated zone. Example: `60`. | ||
* `delegate_to`: The remote server to which the NIOS appliance redirects queries for data for the delegated zone. Example: | ||
```terraform | ||
delegate_to { | ||
name = "te32.dz.ex.com" | ||
address = "10.0.0.1" | ||
} | ||
``` | ||
|
||
For usage of filters, add the fields as keys and appropriate values to be passed to the keys like `fqdn`, `view` corresponding to object. | ||
From the below list of supported arguments for filters, use only the searchable fields for retrieving the matching records. | ||
|
||
### Supported Arguments for filters | ||
|
||
----- | ||
| Field | Alias | Type | Searchable | | ||
|-------------|-------------|--------|------------| | ||
| fqdn | fqdn | string | yes | | ||
| view | view | string | yes | | ||
| zone_format | zone_format | string | yes | | ||
| comment | comment | string | yes | | ||
|
||
|
||
!> Any combination of searchable fields in the supported arguments list for fields is allowed. | ||
|
||
!> "Aliases are the parameter names used in the prior releases of Infoblox IPAM Plug-In for Terraform. Do not use the alias names for parameters in the data source blocks. Using them can result in error scenarios." | ||
|
||
### Example for using the filters: | ||
```hcl | ||
data "infoblox_zone_delegated" "data_zone_delegated" { | ||
filters = { | ||
fqdn = "zone_delegated.ex.org" | ||
view = "default" | ||
} | ||
} | ||
``` | ||
!> From the above example, if the 'view' value is not specified, if same zone name exists in one or more different DNS views, those | ||
all zones will be fetched in results. | ||
|
||
!> If `null` or empty filters are passed, then all the zones or objects associated with datasource like here `infoblox_zone_delegated` will be fetched in results. | ||
|
||
### Example of the Zone Delegated Data Source Block | ||
|
||
```hcl | ||
resource "infoblox_zone_delegated" "delegatedzone_delegateTo" { | ||
fqdn = "zone_delegated.ex.org" | ||
delegate_to { | ||
name = "test22.dz.ex.com" | ||
address = "10.0.0.1" | ||
} | ||
delegate_to { | ||
name = "test2.dz.ex.com" | ||
address = "10.0.0.2" | ||
} | ||
ext_attrs = jsonencode({ | ||
"Site" = "Antarctica" | ||
}) | ||
} | ||
// accessing Zone Delegated by specifying fqdn, view and extra attribute Site | ||
data "infoblox_zone_delegated" "data_zone_delegated" { | ||
filters = { | ||
fqdn = "zone_delegated.ex.org" | ||
view = "default" | ||
"*Site" = "Antarctica" | ||
} | ||
// This is just to ensure that the record has been be created | ||
depends_on = [infoblox_zone_delegated.delegatedzone_delegateTo] | ||
} | ||
// returns matching Zone Delegated with fqdn and view, if any | ||
output "zone_delegated_data3" { | ||
value = data.infoblox_zone_delegated.data_zone_delegated | ||
} | ||
resource "infoblox_zone_delegated" "delegatedzone_IPV4_nsGroup" { | ||
fqdn = "195.1.0.0/24" | ||
comment = "Delegated zone IPV4" | ||
zone_format = "IPV4" | ||
ns_group = "test" | ||
} | ||
// accessing Zone Delegated by specifying fqdn, view and comment | ||
data "infoblox_zone_delegated" "datazone_delegated_fqdn_view_comment" { | ||
filters = { | ||
fqdn = "195.1.0.0/24" | ||
view = "default" | ||
comment = "Delegated zone IPV4" | ||
} | ||
// This is just to ensure that the record has been be created | ||
depends_on = [infoblox_zone_delegated.delegatedzone_IPV4_nsGroup] | ||
} | ||
// returns matching Zone Delegated with fqdn, view and comment, if any | ||
output "zone_delegated_data4" { | ||
value = data.infoblox_zone_delegated.datazone_delegated_fqdn_view_comment | ||
} | ||
``` |
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
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
Oops, something went wrong.