diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b07febb..239a3c35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Terraform Gandi provider changelog +## v2.1.0 + +### Added + +- Added the `mutable` attribute on the `livedns_records` + ressource. When this attribute is set to `true`, some elements in + the `TXT` value list can be managed outside from Terraform. This + allows bots to add entries to a `TXT` record managed by the Gandi + Terraform provider: they won't be removed on the next `terraform apply`! + +### Fixed + +- When a record has been manually removed (from the web UI for + instance), the provider now recreates it. +- When importing a domain resource, the provider no longer imports + nameservers when if LiveDNS is enabled on the domain: LiveDNS + manages the nameservers and they can be updated by Gandi without + any user intervention, leading to Terraform state incoherences. + ## v1.0.0 After months of being used with success, here is the first release! diff --git a/README.md b/README.md index 52ee8a55..e453bbf4 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ terraform { required_providers { gandi = { source = "go-gandi/gandi" - version = "~> 2.0.0" + version = ">= 2.1.0" } } } diff --git a/docs/data-sources/domain.md b/docs/data-sources/domain.md index 273685f3..4aeb0b34 100644 --- a/docs/data-sources/domain.md +++ b/docs/data-sources/domain.md @@ -19,12 +19,9 @@ description: |- - `name` (String) The FQDN of the domain -### Optional - -- `id` (String) The ID of this resource. - ### Read-Only +- `id` (String) The ID of this resource. - `nameservers` (List of String) A list of nameservers for the domain diff --git a/docs/data-sources/glue_record.md b/docs/data-sources/glue_record.md index 67a8a086..bb9f2eeb 100644 --- a/docs/data-sources/glue_record.md +++ b/docs/data-sources/glue_record.md @@ -20,12 +20,9 @@ description: |- - `name` (String) Host name of the glue record - `zone` (String) Domain name -### Optional - -- `id` (String) The ID of this resource. - ### Read-Only +- `id` (String) The ID of this resource. - `ips` (List of String) A list of the ip addresses provided for the glue record diff --git a/docs/data-sources/livedns_domain.md b/docs/data-sources/livedns_domain.md index 5d00d4c8..c382aa38 100644 --- a/docs/data-sources/livedns_domain.md +++ b/docs/data-sources/livedns_domain.md @@ -19,7 +19,7 @@ description: |- - `name` (String) The FQDN of the domain -### Optional +### Read-Only - `id` (String) The ID of this resource. diff --git a/docs/data-sources/livedns_domain_ns.md b/docs/data-sources/livedns_domain_ns.md index 00abd48d..e56b16ee 100644 --- a/docs/data-sources/livedns_domain_ns.md +++ b/docs/data-sources/livedns_domain_ns.md @@ -19,12 +19,9 @@ description: |- - `name` (String) The FQDN of the domain -### Optional - -- `id` (String) The ID of this resource. - ### Read-Only +- `id` (String) The ID of this resource. - `nameservers` (List of String) A list of nameservers for the domain diff --git a/docs/data-sources/mailbox.md b/docs/data-sources/mailbox.md index 70c08152..41ade95b 100644 --- a/docs/data-sources/mailbox.md +++ b/docs/data-sources/mailbox.md @@ -20,7 +20,7 @@ description: |- - `domain` (String) Domain name - `mailbox_id` (String) Mailbox ID -### Optional +### Read-Only - `id` (String) The ID of this resource. diff --git a/docs/resources/dnssec_key.md b/docs/resources/dnssec_key.md index 98da3c16..81c7c8b6 100644 --- a/docs/resources/dnssec_key.md +++ b/docs/resources/dnssec_key.md @@ -22,7 +22,7 @@ description: |- - `public_key` (String) DNSSEC public key - `type` (String) DNSSEC key type -### Optional +### Read-Only - `id` (String) The ID of this resource. diff --git a/docs/resources/domain.md b/docs/resources/domain.md index 6016cba7..09636e63 100644 --- a/docs/resources/domain.md +++ b/docs/resources/domain.md @@ -25,11 +25,14 @@ description: |- - `admin` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--admin)) - `autorenew` (Boolean) Should the domain autorenew - `billing` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--billing)) -- `id` (String) The ID of this resource. - `nameservers` (List of String, Deprecated) A list of nameservers for the domain - `tech` (Block Set, Max: 1) (see [below for nested schema](#nestedblock--tech)) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +### Read-Only + +- `id` (String) The ID of this resource. + ### Nested Schema for `owner` diff --git a/docs/resources/email_forwarding.md b/docs/resources/email_forwarding.md index ab61ebc7..85bae526 100644 --- a/docs/resources/email_forwarding.md +++ b/docs/resources/email_forwarding.md @@ -20,7 +20,7 @@ description: |- - `destinations` (List of String) Forwards to email addresses - `source` (String) Account alias name -### Optional +### Read-Only - `id` (String) The ID of this resource. diff --git a/docs/resources/glue_record.md b/docs/resources/glue_record.md index e1ce0d20..5d0d40c7 100644 --- a/docs/resources/glue_record.md +++ b/docs/resources/glue_record.md @@ -23,7 +23,6 @@ description: |- ### Optional -- `id` (String) The ID of this resource. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only @@ -31,6 +30,7 @@ description: |- - `fqdn` (String) The fqdn of the record - `fqdn_unicode` (String) The fqdn unicode of the record - `href` (String) The href of the record +- `id` (String) The ID of this resource. ### Nested Schema for `timeouts` diff --git a/docs/resources/livedns_domain.md b/docs/resources/livedns_domain.md index 2fe3969a..f367a6b8 100644 --- a/docs/resources/livedns_domain.md +++ b/docs/resources/livedns_domain.md @@ -22,10 +22,13 @@ description: |- ### Optional - `automatic_snapshots` (Boolean) Enable or disable the automatic creation of snapshots when records are changed -- `id` (String) The ID of this resource. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) - `ttl` (Number, Deprecated) The SOA TTL for the domain +### Read-Only + +- `id` (String) The ID of this resource. + ### Nested Schema for `timeouts` diff --git a/docs/resources/livedns_record.md b/docs/resources/livedns_record.md index 6c67e1fe..6b0b52f9 100644 --- a/docs/resources/livedns_record.md +++ b/docs/resources/livedns_record.md @@ -25,13 +25,13 @@ description: |- ### Optional -- `id` (String) The ID of this resource. - `mutable` (Boolean) Define if the record can be modified outside Terraform (this currently only works for TXT records) - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only - `href` (String) The href of the record +- `id` (String) The ID of this resource. ### Nested Schema for `timeouts` diff --git a/docs/resources/mailbox.md b/docs/resources/mailbox.md index 7029a00f..af2cc3b2 100644 --- a/docs/resources/mailbox.md +++ b/docs/resources/mailbox.md @@ -24,7 +24,10 @@ description: |- ### Optional - `aliases` (List of String) Aliases for email -- `id` (String) The ID of this resource. - `mailbox_type` (String) Mailbox type +### Read-Only + +- `id` (String) The ID of this resource. + diff --git a/docs/resources/nameservers.md b/docs/resources/nameservers.md index 60b18ffc..5ebe3bc0 100644 --- a/docs/resources/nameservers.md +++ b/docs/resources/nameservers.md @@ -21,10 +21,13 @@ description: |- ### Optional -- `id` (String) The ID of this resource. - `nameservers` (List of String) A list of nameservers for the domain - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +### Read-Only + +- `id` (String) The ID of this resource. + ### Nested Schema for `timeouts` diff --git a/docs/resources/simplehosting_instance.md b/docs/resources/simplehosting_instance.md index 8608f85a..96774737 100644 --- a/docs/resources/simplehosting_instance.md +++ b/docs/resources/simplehosting_instance.md @@ -25,9 +25,12 @@ description: |- ### Optional -- `id` (String) The ID of this resource. - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) +### Read-Only + +- `id` (String) The ID of this resource. + ### Nested Schema for `timeouts` diff --git a/docs/resources/simplehosting_vhost.md b/docs/resources/simplehosting_vhost.md index 80e6ef99..7cd4018e 100644 --- a/docs/resources/simplehosting_vhost.md +++ b/docs/resources/simplehosting_vhost.md @@ -23,13 +23,13 @@ description: |- ### Optional - `application` (String) The name of an application to install ('grav', 'matomo', 'nextcloud', 'prestashop', 'wordpress') -- `id` (String) The ID of this resource. - `linked_dns_zone_alteration` (Boolean) Whether to alter the linked DNS Zone - `timeouts` (Block, Optional) (see [below for nested schema](#nestedblock--timeouts)) ### Read-Only - `certificate_id` (String) The ID of the created free certificate +- `id` (String) The ID of this resource. ### Nested Schema for `timeouts`