Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: instance server_type now defaults to cx22 #99

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: instance server_type now defaults to cx22
  • Loading branch information
jooola committed Jun 10, 2024
commit d5aa0bf45449d80c91543a275b8b2aba251a936d
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