1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-03 23:51:48 +00:00

docs: update deprecated server types (#718)

The CX Gen 2 and CPX Gen 1 types are deprecated and will be removed from
the API at the end of the year. This replaces all usages in our docs, so
users do not have to figure it out themselves.

Changelog Entry: https://docs.hetzner.cloud/changelog#2025-10-16-server-types-deprecated


Co-authored-by: Petteri Räty <github@petteriraty.eu>
This commit is contained in:
Julian Tölle 2025-10-28 13:45:41 +01:00 committed by GitHub
parent a64fbec0f1
commit 59c539c48b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 22 additions and 22 deletions

View file

@ -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: cx22
server_type: cpx22
image: debian-12
state: present
@ -45,7 +45,7 @@ example if you want to store your API token in a vault:
- name: Create server
hetzner.hcloud.server:
name: my-server
server_type: cx22
server_type: cpx22
image: debian-12
state: present

View file

@ -38,7 +38,7 @@
- name: Create servers
hetzner.hcloud.server:
name: "{{ item.name }}"
server_type: cx22
server_type: cpx22
image: debian-12
state: present
loop: "{{ servers }}"

View file

@ -31,7 +31,7 @@
- name: Create servers
hetzner.hcloud.server:
name: "{{ item.name }}"
server_type: cx22
server_type: cpx22
image: debian-12
labels:
kind: runners

View file

@ -28,7 +28,7 @@
- name: Create servers without public IPs
hetzner.hcloud.server:
name: "{{ item.name }}"
server_type: cx22
server_type: cpx22
image: debian-12
enable_ipv4: false
enable_ipv6: false

View file

@ -19,7 +19,7 @@
- name: Create a server
hetzner.hcloud.server:
name: my-server
server_type: cx22
server_type: cpx22
image: debian-12
location: fsn1
volumes:

View file

@ -11,7 +11,7 @@
- name: Create new server
hetzner.hcloud.server:
name: my-server
server_type: cx22
server_type: cpx22
image: debian-12
- name: Refresh inventory

View file

@ -10,7 +10,7 @@
- name: Fetch server type info
hetzner.hcloud.server_type_info:
name: cx22
name: cpx22
register: server_type
- name: Ensure server type exists

View file

@ -135,7 +135,7 @@ plugin: hetzner.hcloud.hcloud
locations:
- nbg1
types:
- cx22
- cpx22
status:
- running
@ -164,8 +164,8 @@ plugin: hetzner.hcloud.hcloud
# foo: "bar"
# hcloud_status: "running"
## Server Type
# hcloud_type: "cx22"
# hcloud_server_type: "cx22"
# hcloud_type: "cpx22"
# hcloud_server_type: "cpx22"
# hcloud_architecture: "x86"
## Image
# hcloud_image_id: 114690387

View file

@ -109,7 +109,7 @@ hcloud_load_balancer:
description: Name of the Load Balancer type of the Load Balancer
returned: always
type: str
sample: cx22
sample: lb11
algorithm:
description: Algorithm of the Load Balancer.
returned: always

View file

@ -68,7 +68,7 @@ hcloud_load_balancer_info:
description: Name of the Load Balancer type of the Load Balancer
returned: always
type: str
sample: cx22
sample: lb11
ipv4_address:
description: Public IPv4 address of the Load Balancer
returned: always

View file

@ -138,7 +138,7 @@ hcloud_network_info:
description: Name of the server type of the server
returned: always
type: str
sample: cx22
sample: cpx22
ipv4_address:
description: Public IPv4 address of the server, None if not existing
returned: always

View file

@ -161,14 +161,14 @@ EXAMPLES = """
- name: Create a basic server
hetzner.hcloud.server:
name: my-server
server_type: cx22
server_type: cpx22
image: ubuntu-22.04
state: present
- name: Create a basic server with ssh key
hetzner.hcloud.server:
name: my-server
server_type: cx22
server_type: cpx22
image: ubuntu-22.04
location: fsn1
ssh_keys:
@ -178,7 +178,7 @@ EXAMPLES = """
- name: Resize an existing server
hetzner.hcloud.server:
name: my-server
server_type: cx32
server_type: cpx22
upgrade_disk: true
state: present
@ -268,7 +268,7 @@ hcloud_server:
description: Name of the server type of the server
returned: always
type: str
sample: cx22
sample: cpx22
ipv4_address:
description: Public IPv4 address of the server
returned: always

View file

@ -78,7 +78,7 @@ hcloud_server_info:
description: Name of the server type of the server
returned: always
type: str
sample: cx22
sample: cpx22
ipv4_address:
description: Public IPv4 address of the server
returned: always

View file

@ -38,7 +38,7 @@ def test_build_inventory_server():
"firewalls": [],
},
"private_net": [],
"server_type": {"id": 1, "name": "cx11", "architecture": "x86"},
"server_type": {"id": 109, "name": "cpx22", "architecture": "x86"},
"datacenter": {
"id": 3,
"name": "hel1-dc2",
@ -57,8 +57,8 @@ def test_build_inventory_server():
"id": 45921624,
"name": "my-server",
"status": "running",
"type": "cx11",
"server_type": "cx11",
"type": "cpx22",
"server_type": "cpx22",
"architecture": "x86",
"location": "hel1",
"datacenter": "hel1-dc2",