Skip to content

Commit

Permalink
chore: replace deprecated server type with cx22 (#510)
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
- Use ARM server type for tests
  • Loading branch information
jooola committed Jun 11, 2024
1 parent 0dc8578 commit fb8c2a9
Show file tree
Hide file tree
Showing 28 changed files with 56 additions and 56 deletions.
4 changes: 2 additions & 2 deletions docs/docsite/rst/guides.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Alternatively, you may provide the API token directly as module argument:
hetzner.hcloud.server:
api_token: LRK9DAWQ1ZAEFSrCNEEzLCUwhYX1U3g7wMg4dTlkkDC96fyDuyJ39nVbVjCKSDfj
name: my-server
server_type: cx11
server_type: cx22
image: debian-12
state: present
Expand All @@ -45,6 +45,6 @@ example if you want to store your API token in a vault:
- name: Create server
hetzner.hcloud.server:
name: my-server
server_type: cx11
server_type: cx22
image: debian-12
state: present
2 changes: 1 addition & 1 deletion examples/server-with-firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- name: Create servers
hetzner.hcloud.server:
name: "{{ item.name }}"
server_type: cx11
server_type: cx22
image: debian-12
labels:
kind: runners
Expand Down
2 changes: 1 addition & 1 deletion examples/server-with-private-ip-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- name: Create servers without public IPs
hetzner.hcloud.server:
name: "{{ item.name }}"
server_type: cx11
server_type: cx22
image: debian-12
enable_ipv4: false
enable_ipv6: false
Expand Down
2 changes: 1 addition & 1 deletion examples/use-module-defaults-group.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: Create a server
hetzner.hcloud.server:
name: my-server
server_type: cx11
server_type: cx22
image: debian-12
location: fsn1
volumes:
Expand Down
2 changes: 1 addition & 1 deletion examples/use-refresh-inventory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- name: Create new server
hetzner.hcloud.server:
name: my-server
server_type: cx11
server_type: cx22
image: debian-12

- name: Refresh inventory
Expand Down
6 changes: 3 additions & 3 deletions plugins/inventory/hcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
locations:
- nbg1
types:
- cx11
- cx22
status:
- running
Expand Down Expand Up @@ -163,8 +163,8 @@
# foo: "bar"
# status: "running"
## Server Type
# type: "cx11"
# server_type: "cx11"
# type: "cx22"
# server_type: "cx22"
# architecture: "x86"
## Image
# image_id: 114690387
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/load_balancer.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
description: Name of the Load Balancer type of the Load Balancer
returned: always
type: str
sample: cx11
sample: cx22
algorithm:
description: Algorithm of the Load Balancer.
returned: always
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/load_balancer_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
description: Name of the Load Balancer type of the Load Balancer
returned: always
type: str
sample: cx11
sample: cx22
ipv4_address:
description: Public IPv4 address of the Load Balancer
returned: always
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/network_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
description: Name of the server type of the server
returned: always
type: str
sample: cx11
sample: cx22
ipv4_address:
description: Public IPv4 address of the server, None if not existing
returned: always
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@
- name: Create a basic server
hetzner.hcloud.server:
name: my-server
server_type: cx11
server_type: cx22
image: ubuntu-22.04
state: present
- name: Create a basic server with ssh key
hetzner.hcloud.server:
name: my-server
server_type: cx11
server_type: cx22
image: ubuntu-22.04
location: fsn1
ssh_keys:
Expand All @@ -178,7 +178,7 @@
- name: Resize an existing server
hetzner.hcloud.server:
name: my-server
server_type: cx21
server_type: cx32
upgrade_disk: true
state: present
Expand Down Expand Up @@ -268,7 +268,7 @@
description: Name of the server type of the server
returned: always
type: str
sample: cx11
sample: cx22
ipv4_address:
description: Public IPv4 address of the server
returned: always
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/server_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
description: Name of the server type of the server
returned: always
type: str
sample: cx11
sample: cx22
ipv4_address:
description: Public IPv4 address of the server
returned: always
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/firewall/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
register: test_server
2 changes: 1 addition & 1 deletion tests/integration/targets/firewall_info/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
labels:
firewall: "{{ hcloud_firewall_name }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
labels:
key: value
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/targets/floating_ip/tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- name: setup server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
location: "fsn1"
Expand All @@ -32,7 +32,7 @@
- name: setup another server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}2"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
register: main_server2
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/image_info/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
register: test_server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
register: test_server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- name: setup server
hetzner.hcloud.server:
name: "{{hcloud_server_name}}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
location: "fsn1"
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/primary_ip/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: stopped
enable_ipv4: false
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/targets/rdns/tasks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Create test_server
hetzner.hcloud.server:
name: "{{ hcloud_server_name }}"
server_type: cx11
server_type: cax11
image: ubuntu-22.04
state: present
register: test_server
Expand Down
Loading

0 comments on commit fb8c2a9

Please sign in to comment.