Skip to content

Commit

Permalink
feat: instance server_type now defaults to cx22 (#99)
Browse files Browse the repository at this point in the history
Learn more:
https://docs.hetzner.cloud/changelog#2024-06-06-old-server-types-with-shared-intel-vcpus-are-deprecated

- Updated docs with newer server types
- Update default server type to use newer server type
  • Loading branch information
jooola committed Jun 11, 2024
1 parent 292dda1 commit b1bb242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion molecule_hetznercloud/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}"
Expand Down

0 comments on commit b1bb242

Please sign in to comment.