mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
feat: DNS support is now generally available (#727)
##### SUMMARY DNS support is now general available. See https://docs.hetzner.cloud/changelog#2025-11-10-dns-ga for more details. ##### ISSUE TYPE - Feature Pull Request
This commit is contained in:
parent
450b61edb8
commit
337067d9de
6 changed files with 2 additions and 35 deletions
2
changelogs/fragments/dns-support-generally-available.yml
Normal file
2
changelogs/fragments/dns-support-generally-available.yml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- DNS support is now generally available.
|
||||||
|
|
@ -32,10 +32,3 @@ def experimental_warning_function(product: str, maturity: str, url: str):
|
||||||
module.warn(message)
|
module.warn(message)
|
||||||
|
|
||||||
return fn
|
return fn
|
||||||
|
|
||||||
|
|
||||||
dns_experimental_warning = experimental_warning_function(
|
|
||||||
"DNS API",
|
|
||||||
"in beta",
|
|
||||||
"https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta",
|
|
||||||
)
|
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ short_description: Create and manage DNS Zone on the Hetzner Cloud.
|
||||||
description:
|
description:
|
||||||
- Create, update and delete DNS Zone on the Hetzner Cloud.
|
- Create, update and delete DNS Zone on the Hetzner Cloud.
|
||||||
- See the L(Zones API documentation,https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
- See the L(Zones API documentation,https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
||||||
- B(Experimental:) DNS API is in beta, breaking changes may occur within minor releases.
|
|
||||||
See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Jonas Lammler (@jooola)
|
- Jonas Lammler (@jooola)
|
||||||
|
|
@ -259,7 +257,6 @@ hcloud_zone:
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
from ..module_utils.experimental import dns_experimental_warning
|
|
||||||
from ..module_utils.hcloud import AnsibleHCloud
|
from ..module_utils.hcloud import AnsibleHCloud
|
||||||
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
||||||
from ..module_utils.vendor.hcloud.actions import BoundAction
|
from ..module_utils.vendor.hcloud.actions import BoundAction
|
||||||
|
|
@ -271,10 +268,6 @@ class AnsibleHCloudZone(AnsibleHCloud):
|
||||||
|
|
||||||
hcloud_zone: BoundZone | None = None
|
hcloud_zone: BoundZone | None = None
|
||||||
|
|
||||||
def __init__(self, module: AnsibleModule):
|
|
||||||
dns_experimental_warning(module)
|
|
||||||
super().__init__(module)
|
|
||||||
|
|
||||||
def _prepare_result(self):
|
def _prepare_result(self):
|
||||||
return {
|
return {
|
||||||
"id": self.hcloud_zone.id,
|
"id": self.hcloud_zone.id,
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ short_description: Gather infos about your Hetzner Cloud Zones.
|
||||||
description:
|
description:
|
||||||
- Gather infos about your Hetzner Cloud Zones.
|
- Gather infos about your Hetzner Cloud Zones.
|
||||||
- See the L(Zones API documentation,https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
- See the L(Zones API documentation,https://docs.hetzner.cloud/reference/cloud#zones) for more details.
|
||||||
- B(Experimental:) DNS API is in beta, breaking changes may occur within minor releases.
|
|
||||||
See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Jonas Lammler (@jooola)
|
- Jonas Lammler (@jooola)
|
||||||
|
|
@ -158,7 +156,6 @@ hcloud_zone_info:
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
from ..module_utils.experimental import dns_experimental_warning
|
|
||||||
from ..module_utils.hcloud import AnsibleHCloud
|
from ..module_utils.hcloud import AnsibleHCloud
|
||||||
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
||||||
from ..module_utils.vendor.hcloud.zones import BoundZone, ZonePrimaryNameserver
|
from ..module_utils.vendor.hcloud.zones import BoundZone, ZonePrimaryNameserver
|
||||||
|
|
@ -169,10 +166,6 @@ class AnsibleHCloudZoneInfo(AnsibleHCloud):
|
||||||
|
|
||||||
hcloud_zone_info: list[BoundZone] | None = None
|
hcloud_zone_info: list[BoundZone] | None = None
|
||||||
|
|
||||||
def __init__(self, module: AnsibleModule):
|
|
||||||
dns_experimental_warning(module)
|
|
||||||
super().__init__(module)
|
|
||||||
|
|
||||||
def _prepare_result(self):
|
def _prepare_result(self):
|
||||||
tmp = []
|
tmp = []
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ short_description: Create and manage Zone RRSets on the Hetzner Cloud.
|
||||||
description:
|
description:
|
||||||
- Create, update and delete Zone RRSets on the Hetzner Cloud.
|
- Create, update and delete Zone RRSets on the Hetzner Cloud.
|
||||||
- See the L(Zone RRSets API documentation,https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
- See the L(Zone RRSets API documentation,https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
||||||
- B(Experimental:) DNS API is in beta, breaking changes may occur within minor releases.
|
|
||||||
See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Jonas Lammler (@jooola)
|
- Jonas Lammler (@jooola)
|
||||||
|
|
@ -174,7 +172,6 @@ from typing import Literal
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
from ..module_utils.experimental import dns_experimental_warning
|
|
||||||
from ..module_utils.hcloud import AnsibleHCloud
|
from ..module_utils.hcloud import AnsibleHCloud
|
||||||
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
||||||
from ..module_utils.vendor.hcloud.actions import BoundAction
|
from ..module_utils.vendor.hcloud.actions import BoundAction
|
||||||
|
|
@ -186,10 +183,6 @@ class AnsibleHCloudZoneRRSet(AnsibleHCloud):
|
||||||
|
|
||||||
hcloud_zone_rrset: BoundZoneRRSet | None = None
|
hcloud_zone_rrset: BoundZoneRRSet | None = None
|
||||||
|
|
||||||
def __init__(self, module: AnsibleModule):
|
|
||||||
dns_experimental_warning(module)
|
|
||||||
super().__init__(module)
|
|
||||||
|
|
||||||
def _prepare_result(self):
|
def _prepare_result(self):
|
||||||
return {
|
return {
|
||||||
# Do not use the zone name to prevent a request to the API.
|
# Do not use the zone name to prevent a request to the API.
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ short_description: Gather infos about your Hetzner Cloud Zone RRSets.
|
||||||
description:
|
description:
|
||||||
- Gather infos about your Hetzner Cloud Zone RRSets.
|
- Gather infos about your Hetzner Cloud Zone RRSets.
|
||||||
- See the L(Zone RRSets API documentation,https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
- See the L(Zone RRSets API documentation,https://docs.hetzner.cloud/reference/cloud#zone-rrsets) for more details.
|
||||||
- B(Experimental:) DNS API is in beta, breaking changes may occur within minor releases.
|
|
||||||
See https://docs.hetzner.cloud/changelog#2025-10-07-dns-beta for more details.
|
|
||||||
|
|
||||||
author:
|
author:
|
||||||
- Jonas Lammler (@jooola)
|
- Jonas Lammler (@jooola)
|
||||||
|
|
@ -120,7 +118,6 @@ hcloud_zone_rrset_info:
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
||||||
from ..module_utils.experimental import dns_experimental_warning
|
|
||||||
from ..module_utils.hcloud import AnsibleHCloud
|
from ..module_utils.hcloud import AnsibleHCloud
|
||||||
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
from ..module_utils.vendor.hcloud import APIException, HCloudException
|
||||||
from ..module_utils.vendor.hcloud.zones import BoundZoneRRSet, Zone, ZoneRecord
|
from ..module_utils.vendor.hcloud.zones import BoundZoneRRSet, Zone, ZoneRecord
|
||||||
|
|
@ -131,10 +128,6 @@ class AnsibleHCloudZoneRRSetInfo(AnsibleHCloud):
|
||||||
|
|
||||||
hcloud_zone_rrset_info: list[BoundZoneRRSet] | None = None
|
hcloud_zone_rrset_info: list[BoundZoneRRSet] | None = None
|
||||||
|
|
||||||
def __init__(self, module: AnsibleModule):
|
|
||||||
dns_experimental_warning(module)
|
|
||||||
super().__init__(module)
|
|
||||||
|
|
||||||
def _prepare_result(self):
|
def _prepare_result(self):
|
||||||
tmp = []
|
tmp = []
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue