From a2066d5c06136990d53c292cccd68b5ea86ebd18 Mon Sep 17 00:00:00 2001 From: Hetzner Cloud Bot <45457231+hcloud-bot@users.noreply.github.com> Date: Fri, 26 Sep 2025 10:27:08 +0000 Subject: [PATCH] chore(main): changelog for version 5.3.0 --- CHANGELOG.rst | 104 ++++++++++++++++++ changelogs/changelog.yaml | 47 ++++++++ .../fragments/add-server-type-category.yml | 2 - .../fragments/per-location-server-types.yml | 87 --------------- .../wait-floating-ip-assign-action.yml | 2 - 5 files changed, 151 insertions(+), 91 deletions(-) delete mode 100644 changelogs/fragments/add-server-type-category.yml delete mode 100644 changelogs/fragments/per-location-server-types.yml delete mode 100644 changelogs/fragments/wait-floating-ip-assign-action.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 54f3292..9d9506c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -4,6 +4,110 @@ Hetzner Cloud Ansible Collection Release Notes .. contents:: Topics +v5.3.0 +====== + +Release Summary +--------------- + +`Server Types`_ now depend on `Locations`_. + +- We added a new ``locations`` property to the `Server Types`_ resource. The new + property defines a list of supported `Locations`_ and additional per `Locations`_ + details such as deprecations information. + +- We deprecated the ``deprecation`` property from the `Server Types`_ resource. The + property will gradually be phased out as per `Locations`_ deprecations are being + announced. Please use the new per `Locations`_ deprecation information instead. + +See our `changelog`_ for more details. + +**Upgrading** + +.. code:: yaml + + # Before + --- + - name: Validate server type + hosts: localhost + connection: local + tasks: + - name: Fetch server type info + hetzner.hcloud.server_type_info: + name: cx22 + register: server_type + + - name: Ensure server type exists + ansible.builtin.assert: + fail_msg: server type does not exists + that: + - server_type.hcloud_server_type_info | count == 1 + + - name: Ensure server type is not deprecated + ansible.builtin.assert: + fail_msg: server type is deprecated + that: + - server_type.hcloud_server_type_info[0].deprecation is none + +.. code:: yaml + + # After + --- + - name: Validate server type + hosts: localhost + connection: local + tasks: + - name: Fetch location info + hetzner.hcloud.location_info: + name: fsn1 + register: location + + - name: Fetch server type info + hetzner.hcloud.server_type_info: + name: cx22 + register: server_type + + - name: Ensure server type exists + ansible.builtin.assert: + fail_msg: server type does not exists + that: + - server_type.hcloud_server_type_info | count == 1 + + - name: Extract server type location info + ansible.builtin.set_fact: + server_type_location: > + {{ + server_type.hcloud_server_type_info[0].locations + | selectattr("name", "eq", location.hcloud_location_info[0].name) + | first + }} + + - name: Ensure server type is not deprecated + ansible.builtin.assert: + fail_msg: server type is deprecated in location + that: + - server_type_location.deprecation is none + +.. _Server Types: https://docs.hetzner.cloud/reference/cloud#server-types +.. _Locations: https://docs.hetzner.cloud/reference/cloud#locations +.. _changelog: https://docs.hetzner.cloud/changelog#2025-09-24-per-location-server-types + +Minor Changes +------------- + +- server_type_info - Return new Server Type ``category`` property. +- server_type_info - Return new Server Type ``locations`` property. + +Deprecated Features +------------------- + +- server_type_info - Deprecate Server Type ``deprecation`` property. + +Bugfixes +-------- + +- floating_ip - Wait for the Floating IP assign action to complete to reduce chances of running into ``locked`` errors. + v5.2.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 9236542..85e5a4d 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -682,3 +682,50 @@ releases: - missing-volume-attachment-meta.yml - rename-volume.yml release_date: '2025-08-14' + 5.3.0: + changes: + bugfixes: + - floating_ip - Wait for the Floating IP assign action to complete to reduce + chances of running into ``locked`` errors. + deprecated_features: + - server_type_info - Deprecate Server Type ``deprecation`` property. + minor_changes: + - server_type_info - Return new Server Type ``category`` property. + - server_type_info - Return new Server Type ``locations`` property. + release_summary: "`Server Types`_ now depend on `Locations`_.\n\n- We added + a new ``locations`` property to the `Server Types`_ resource. The new\n property + defines a list of supported `Locations`_ and additional per `Locations`_\n + \ details such as deprecations information.\n\n- We deprecated the ``deprecation`` + property from the `Server Types`_ resource. The\n property will gradually + be phased out as per `Locations`_ deprecations are being\n announced. Please + use the new per `Locations`_ deprecation information instead.\n\nSee our `changelog`_ + for more details.\n\n**Upgrading**\n\n.. code:: yaml\n\n # Before\n ---\n + \ - name: Validate server type\n hosts: localhost\n connection: + local\n tasks:\n - name: Fetch server type info\n hetzner.hcloud.server_type_info:\n + \ name: cx22\n register: server_type\n\n - name: + Ensure server type exists\n ansible.builtin.assert:\n fail_msg: + server type does not exists\n that:\n - server_type.hcloud_server_type_info + | count == 1\n\n - name: Ensure server type is not deprecated\n ansible.builtin.assert:\n + \ fail_msg: server type is deprecated\n that:\n - + server_type.hcloud_server_type_info[0].deprecation is none\n\n.. code:: yaml\n\n + \ # After\n ---\n - name: Validate server type\n hosts: localhost\n + \ connection: local\n tasks:\n - name: Fetch location info\n + \ hetzner.hcloud.location_info:\n name: fsn1\n register: + location\n\n - name: Fetch server type info\n hetzner.hcloud.server_type_info:\n + \ name: cx22\n register: server_type\n\n - name: + Ensure server type exists\n ansible.builtin.assert:\n fail_msg: + server type does not exists\n that:\n - server_type.hcloud_server_type_info + | count == 1\n\n - name: Extract server type location info\n ansible.builtin.set_fact:\n + \ server_type_location: >\n {{\n server_type.hcloud_server_type_info[0].locations\n + \ | selectattr(\"name\", \"eq\", location.hcloud_location_info[0].name)\n + \ | first\n }}\n\n - name: Ensure server + type is not deprecated\n ansible.builtin.assert:\n fail_msg: + server type is deprecated in location\n that:\n - + server_type_location.deprecation is none\n\n.. _Server Types: https://docs.hetzner.cloud/reference/cloud#server-types\n.. + _Locations: https://docs.hetzner.cloud/reference/cloud#locations\n.. _changelog: + https://docs.hetzner.cloud/changelog#2025-09-24-per-location-server-types\n" + fragments: + - add-server-type-category.yml + - per-location-server-types.yml + - wait-floating-ip-assign-action.yml + release_date: '2025-09-26' diff --git a/changelogs/fragments/add-server-type-category.yml b/changelogs/fragments/add-server-type-category.yml deleted file mode 100644 index d11914f..0000000 --- a/changelogs/fragments/add-server-type-category.yml +++ /dev/null @@ -1,2 +0,0 @@ -minor_changes: - - server_type_info - Return new Server Type ``category`` property. diff --git a/changelogs/fragments/per-location-server-types.yml b/changelogs/fragments/per-location-server-types.yml deleted file mode 100644 index b366677..0000000 --- a/changelogs/fragments/per-location-server-types.yml +++ /dev/null @@ -1,87 +0,0 @@ -release_summary: | - `Server Types`_ now depend on `Locations`_. - - - We added a new ``locations`` property to the `Server Types`_ resource. The new - property defines a list of supported `Locations`_ and additional per `Locations`_ - details such as deprecations information. - - - We deprecated the ``deprecation`` property from the `Server Types`_ resource. The - property will gradually be phased out as per `Locations`_ deprecations are being - announced. Please use the new per `Locations`_ deprecation information instead. - - See our `changelog`_ for more details. - - **Upgrading** - - .. code:: yaml - - # Before - --- - - name: Validate server type - hosts: localhost - connection: local - tasks: - - name: Fetch server type info - hetzner.hcloud.server_type_info: - name: cx22 - register: server_type - - - name: Ensure server type exists - ansible.builtin.assert: - fail_msg: server type does not exists - that: - - server_type.hcloud_server_type_info | count == 1 - - - name: Ensure server type is not deprecated - ansible.builtin.assert: - fail_msg: server type is deprecated - that: - - server_type.hcloud_server_type_info[0].deprecation is none - - .. code:: yaml - - # After - --- - - name: Validate server type - hosts: localhost - connection: local - tasks: - - name: Fetch location info - hetzner.hcloud.location_info: - name: fsn1 - register: location - - - name: Fetch server type info - hetzner.hcloud.server_type_info: - name: cx22 - register: server_type - - - name: Ensure server type exists - ansible.builtin.assert: - fail_msg: server type does not exists - that: - - server_type.hcloud_server_type_info | count == 1 - - - name: Extract server type location info - ansible.builtin.set_fact: - server_type_location: > - {{ - server_type.hcloud_server_type_info[0].locations - | selectattr("name", "eq", location.hcloud_location_info[0].name) - | first - }} - - - name: Ensure server type is not deprecated - ansible.builtin.assert: - fail_msg: server type is deprecated in location - that: - - server_type_location.deprecation is none - - .. _Server Types: https://docs.hetzner.cloud/reference/cloud#server-types - .. _Locations: https://docs.hetzner.cloud/reference/cloud#locations - .. _changelog: https://docs.hetzner.cloud/changelog#2025-09-24-per-location-server-types - -minor_changes: - - server_type_info - Return new Server Type ``locations`` property. -deprecated_features: - - server_type_info - Deprecate Server Type ``deprecation`` property. diff --git a/changelogs/fragments/wait-floating-ip-assign-action.yml b/changelogs/fragments/wait-floating-ip-assign-action.yml deleted file mode 100644 index d932791..0000000 --- a/changelogs/fragments/wait-floating-ip-assign-action.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - floating_ip - Wait for the Floating IP assign action to complete to reduce chances of running into ``locked`` errors.