Skip to content

Commit

Permalink
chore: replace deprecated server type with cx22
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Jun 7, 2024
1 parent 0250dac commit 6ca46fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
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 6ca46fc

Please sign in to comment.