From 333044a0a71b79684043c419765f57595ed87ebe Mon Sep 17 00:00:00 2001 From: Nitish KS Date: Mon, 19 Feb 2024 17:50:23 +0530 Subject: [PATCH 1/2] Updated documentation for TXT-Record --- docs/data-sources/infoblox_txt_record.md | 6 +++--- docs/resources/infoblox_txt_record.md | 8 ++++---- examples/datasources/infoblox_txt_record.tf | 4 ++-- examples/resources/infoblox_txt_record.tf | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/data-sources/infoblox_txt_record.md b/docs/data-sources/infoblox_txt_record.md index ae1219180..3febde068 100644 --- a/docs/data-sources/infoblox_txt_record.md +++ b/docs/data-sources/infoblox_txt_record.md @@ -35,7 +35,7 @@ From the below list of supported arguments for filters, use only the searchable data "infoblox_txt_record" "txt_rec_filter" { filters = { name = "sampletxt.demo.com" - text = "some random text" + text = "\"some random text\"" view = "default" // associated DNS view } } @@ -52,7 +52,7 @@ all records will be fetched in results. resource "infoblox_txt_record" "rec3" { dns_view = "nondefault_dnsview1" fqdn = "example3.example2.org" - text = "data for TXT-record #3" + text = "\"data for TXT-record #3\"" ttl = 300 comment = "example TXT record #3" ext_attrs = jsonencode({ @@ -63,7 +63,7 @@ resource "infoblox_txt_record" "rec3" { data "infoblox_txt_record" "ds3" { filters = { dns_view = "nondefault_dnsview1" - fqdn = "example3.example2.org" + name = "example3.example2.org" } // This is just to ensure that the record has been be created diff --git a/docs/resources/infoblox_txt_record.md b/docs/resources/infoblox_txt_record.md index b706f5a0c..1c4059c47 100644 --- a/docs/resources/infoblox_txt_record.md +++ b/docs/resources/infoblox_txt_record.md @@ -5,7 +5,7 @@ The `infoblox_txt_record` resource associates a text value with a domain name. The following list describes the parameters you can define in the resource block of the record: * `fqdn`: required, specifies the fully qualified domain name which you want to assign the text value for. Example: `host43.zone12.org` -* `text`: required, specifies the text value for the TXT-record. An empty value is not allowed. +* `text`: required, specifies the text value for the TXT-record. It can contain substrings of up to 255 bytes and a total of up to 512 bytes. If you enter leading, trailing, or embedded spaces in the text, add double quotes around the text to preserve the spaces. * `dns_view`: optional, specifies the DNS view which the zone exists in. If a value is not specified, the name `default` is used for DNS view. Example: `dns_view_1` * `ttl`: optional, specifies the "time to live" value for the record. There is no default value for this parameter. If a value is not specified, then in NIOS, the value is inherited from the parent zone of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record. Example: `600` * `comment`: optional, describes the record. Example: `auto-created test record #1` @@ -17,14 +17,14 @@ The following list describes the parameters you can define in the resource block // TXT-Record, minimal set of parameters resource "infoblox_txt_record" "rec1" { fqdn = "sample1.example.org" - text = "this is just a sample" + text = "\"this is just a sample\"" } // some parameters for a TXT-Record resource "infoblox_txt_record" "rec2" { dns_view = "default" // may be omitted fqdn = "sample2.example.org" - text = "data for TXT-record #2" + text = "\"data for TXT-record #2\"" ttl = 120 // 120s } @@ -32,7 +32,7 @@ resource "infoblox_txt_record" "rec2" { resource "infoblox_txt_record" "rec3" { dns_view = "nondefault_dnsview1" fqdn = "example3.example2.org" - text = "data for TXT-record #3" + text = "\"data for TXT-record #3\"" ttl = 300 comment = "example TXT record #3" ext_attrs = jsonencode({ diff --git a/examples/datasources/infoblox_txt_record.tf b/examples/datasources/infoblox_txt_record.tf index 93ce5af74..ec252614e 100644 --- a/examples/datasources/infoblox_txt_record.tf +++ b/examples/datasources/infoblox_txt_record.tf @@ -1,7 +1,7 @@ resource "infoblox_txt_record" "rec3" { dns_view = "nondefault_dnsview1" fqdn = "example3.example2.org" - text = "data for TXT-record #3" + text = "\"data for TXT-record #3\"" ttl = 300 comment = "example TXT record #3" ext_attrs = jsonencode({ @@ -12,7 +12,7 @@ resource "infoblox_txt_record" "rec3" { data "infoblox_txt_record" "ds3" { filters = { dns_view = "nondefault_dnsview1" - fqdn = "example3.example2.org" + name = "example3.example2.org" } // This is just to ensure that the record has been be created diff --git a/examples/resources/infoblox_txt_record.tf b/examples/resources/infoblox_txt_record.tf index 5cf7f0258..bcd0bec57 100644 --- a/examples/resources/infoblox_txt_record.tf +++ b/examples/resources/infoblox_txt_record.tf @@ -1,14 +1,14 @@ // TXT-Record, minimal set of parameters resource "infoblox_txt_record" "rec1" { fqdn = "sample1.example.org" - text = "this is just a sample" + text = "\"this is just a sample\"" } // some parameters for a TXT-Record resource "infoblox_txt_record" "rec2" { dns_view = "default" // may be omitted fqdn = "sample2.example.org" - text = "data for TXT-record #2" + text = "\"data for TXT-record #2\"" ttl = 120 // 120s } @@ -16,7 +16,7 @@ resource "infoblox_txt_record" "rec2" { resource "infoblox_txt_record" "rec3" { dns_view = "nondefault_dnsview1" fqdn = "example3.example2.org" - text = "data for TXT-record #3" + text = "\"data for TXT-record #3\"" ttl = 300 comment = "example TXT record #3" ext_attrs = jsonencode({ From 668badc8adaa7abb1ec2aa35171d7fb486285610 Mon Sep 17 00:00:00 2001 From: Nitish KS Date: Tue, 20 Feb 2024 11:45:49 +0530 Subject: [PATCH 2/2] Updated TXT-Record docs --- docs/resources/infoblox_txt_record.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/infoblox_txt_record.md b/docs/resources/infoblox_txt_record.md index 1c4059c47..de52a4bcb 100644 --- a/docs/resources/infoblox_txt_record.md +++ b/docs/resources/infoblox_txt_record.md @@ -5,7 +5,7 @@ The `infoblox_txt_record` resource associates a text value with a domain name. The following list describes the parameters you can define in the resource block of the record: * `fqdn`: required, specifies the fully qualified domain name which you want to assign the text value for. Example: `host43.zone12.org` -* `text`: required, specifies the text value for the TXT-record. It can contain substrings of up to 255 bytes and a total of up to 512 bytes. If you enter leading, trailing, or embedded spaces in the text, add double quotes around the text to preserve the spaces. +* `text`: required, specifies the text value for the TXT-record. It can contain substrings of up to 255 bytes and a total of up to 512 bytes. If you enter leading, trailing, or embedded spaces in the text string, enclose the entire string within `\"` characters to preserve the spaces. * `dns_view`: optional, specifies the DNS view which the zone exists in. If a value is not specified, the name `default` is used for DNS view. Example: `dns_view_1` * `ttl`: optional, specifies the "time to live" value for the record. There is no default value for this parameter. If a value is not specified, then in NIOS, the value is inherited from the parent zone of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record. Example: `600` * `comment`: optional, describes the record. Example: `auto-created test record #1`