From 6ca46fc1cc2e617a37070f09d7d9a3c68b80387c Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 7 Jun 2024 11:21:59 +0200 Subject: [PATCH] chore: replace deprecated server type with cx22 Learn more: https://docs.hetzner.cloud/changelog#2024-06-06-old-server-types-with-shared-intel-vcpus-are-deprecated --- CHANGELOG.md | 2 +- README.md | 8 ++++---- .../{{cookiecutter.scenario_name}}/molecule.yml | 4 ++-- molecule_hetznercloud/playbooks/create.yml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2015a04..16212cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ ### Features - allow user defined RESOURCE_NAMESPACE ([#54](https://github.com/ansible-community/molecule-hetznercloud/issues/54)) ([1efd919](https://github.com/ansible-community/molecule-hetznercloud/commit/1efd919552d0507a21945efcdf4799aeee821065)) -- instance `server_type` now defaults to `cx11` ([36a28f4](https://github.com/ansible-community/molecule-hetznercloud/commit/36a28f40da6b98eb7473739cf0edc0989f89b978)) +- instance `server_type` now defaults to `cx22` ([36a28f4](https://github.com/ansible-community/molecule-hetznercloud/commit/36a28f40da6b98eb7473739cf0edc0989f89b978)) - rename driver name to `molecule_hetznercloud` ([36a28f4](https://github.com/ansible-community/molecule-hetznercloud/commit/36a28f40da6b98eb7473739cf0edc0989f89b978)) - require instance volumes name ([36a28f4](https://github.com/ansible-community/molecule-hetznercloud/commit/36a28f40da6b98eb7473739cf0edc0989f89b978)) - require molecule >=5.0,<7.0 ([36a28f4](https://github.com/ansible-community/molecule-hetznercloud/commit/36a28f40da6b98eb7473739cf0edc0989f89b978)) diff --git a/README.md b/README.md index a4b093f..3070c04 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,13 @@ $ pip install --upgrade molecule-hetznercloud - Each resource (servers, volumes, networks) name are prefixed with a hash (32 chars) based on the role and scenario path. This means you MAY reuse the same names (e.g. `instance-1`) across your scenarios. Resource names MUST not exceed their max length, for example the server name max length is 63 chars, with the prefix you only have 31 chars left for your name. -- In your `molecule.yml` files, the platforms server type (`platforms[].server_type`) field now defaults to `cx11`. If you already use the default, you MAY remove the field: +- In your `molecule.yml` files, the platforms server type (`platforms[].server_type`) field now defaults to `cx22`. If you already use the default, you MAY remove the field: ```patch platforms: - name: instance-1 image: debian-12 -- server_type: cx11 +- server_type: cx22 ``` ## Usage @@ -87,8 +87,8 @@ platforms: # required image: debian-12 # Name of the Server type this Server should be created with. - # default: cx11 - server_type: cx11 + # default: cx22 + server_type: cx22 # Name of Location to create Server in (must not be used together with datacenter). # default: omit location: hel1 diff --git a/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml b/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml index debeeb1..31fbda0 100644 --- a/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml +++ b/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml @@ -9,8 +9,8 @@ platforms: # required image: debian-12 # Name of the Server type this Server should be created with. - # default: cx11 - server_type: cx11 + # default: cx22 + server_type: cx22 # Name of Location to create Server in (must not be used together with datacenter). # default: omit location: hel1 diff --git a/molecule_hetznercloud/playbooks/create.yml b/molecule_hetznercloud/playbooks/create.yml index 111a557..f3b0196 100644 --- a/molecule_hetznercloud/playbooks/create.yml +++ b/molecule_hetznercloud/playbooks/create.yml @@ -30,7 +30,7 @@ hetzner.hcloud.hcloud_server: name: "{{ resource_namespace }}-{{ item.name }}" image: "{{ item.image }}" - server_type: "{{ item.server_type | default('cx11') }}" + server_type: "{{ item.server_type | default('cx22') }}" ssh_keys: ["{{ ssh_key_name }}"] location: "{{ item.location | default(omit) }}" datacenter: "{{ item.datacenter | default(omit) }}"