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:
parent
a64fbec0f1
commit
59c539c48b
14 changed files with 22 additions and 22 deletions
|
|
@ -23,7 +23,7 @@ Alternatively, you may provide the API token directly as module argument:
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
api_token: LRK9DAWQ1ZAEFSrCNEEzLCUwhYX1U3g7wMg4dTlkkDC96fyDuyJ39nVbVjCKSDfj
|
api_token: LRK9DAWQ1ZAEFSrCNEEzLCUwhYX1U3g7wMg4dTlkkDC96fyDuyJ39nVbVjCKSDfj
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ example if you want to store your API token in a vault:
|
||||||
- name: Create server
|
- name: Create server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
- name: Create servers
|
- name: Create servers
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
state: present
|
state: present
|
||||||
loop: "{{ servers }}"
|
loop: "{{ servers }}"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
- name: Create servers
|
- name: Create servers
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
labels:
|
labels:
|
||||||
kind: runners
|
kind: runners
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
- name: Create servers without public IPs
|
- name: Create servers without public IPs
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
enable_ipv4: false
|
enable_ipv4: false
|
||||||
enable_ipv6: false
|
enable_ipv6: false
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
- name: Create a server
|
- name: Create a server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
location: fsn1
|
location: fsn1
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
- name: Create new server
|
- name: Create new server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: debian-12
|
image: debian-12
|
||||||
|
|
||||||
- name: Refresh inventory
|
- name: Refresh inventory
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
- name: Fetch server type info
|
- name: Fetch server type info
|
||||||
hetzner.hcloud.server_type_info:
|
hetzner.hcloud.server_type_info:
|
||||||
name: cx22
|
name: cpx22
|
||||||
register: server_type
|
register: server_type
|
||||||
|
|
||||||
- name: Ensure server type exists
|
- name: Ensure server type exists
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ plugin: hetzner.hcloud.hcloud
|
||||||
locations:
|
locations:
|
||||||
- nbg1
|
- nbg1
|
||||||
types:
|
types:
|
||||||
- cx22
|
- cpx22
|
||||||
status:
|
status:
|
||||||
- running
|
- running
|
||||||
|
|
||||||
|
|
@ -164,8 +164,8 @@ plugin: hetzner.hcloud.hcloud
|
||||||
# foo: "bar"
|
# foo: "bar"
|
||||||
# hcloud_status: "running"
|
# hcloud_status: "running"
|
||||||
## Server Type
|
## Server Type
|
||||||
# hcloud_type: "cx22"
|
# hcloud_type: "cpx22"
|
||||||
# hcloud_server_type: "cx22"
|
# hcloud_server_type: "cpx22"
|
||||||
# hcloud_architecture: "x86"
|
# hcloud_architecture: "x86"
|
||||||
## Image
|
## Image
|
||||||
# hcloud_image_id: 114690387
|
# hcloud_image_id: 114690387
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ hcloud_load_balancer:
|
||||||
description: Name of the Load Balancer type of the Load Balancer
|
description: Name of the Load Balancer type of the Load Balancer
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx22
|
sample: lb11
|
||||||
algorithm:
|
algorithm:
|
||||||
description: Algorithm of the Load Balancer.
|
description: Algorithm of the Load Balancer.
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ hcloud_load_balancer_info:
|
||||||
description: Name of the Load Balancer type of the Load Balancer
|
description: Name of the Load Balancer type of the Load Balancer
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx22
|
sample: lb11
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the Load Balancer
|
description: Public IPv4 address of the Load Balancer
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ hcloud_network_info:
|
||||||
description: Name of the server type of the server
|
description: Name of the server type of the server
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx22
|
sample: cpx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the server, None if not existing
|
description: Public IPv4 address of the server, None if not existing
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
||||||
|
|
@ -161,14 +161,14 @@ EXAMPLES = """
|
||||||
- name: Create a basic server
|
- name: Create a basic server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Create a basic server with ssh key
|
- name: Create a basic server with ssh key
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx22
|
server_type: cpx22
|
||||||
image: ubuntu-22.04
|
image: ubuntu-22.04
|
||||||
location: fsn1
|
location: fsn1
|
||||||
ssh_keys:
|
ssh_keys:
|
||||||
|
|
@ -178,7 +178,7 @@ EXAMPLES = """
|
||||||
- name: Resize an existing server
|
- name: Resize an existing server
|
||||||
hetzner.hcloud.server:
|
hetzner.hcloud.server:
|
||||||
name: my-server
|
name: my-server
|
||||||
server_type: cx32
|
server_type: cpx22
|
||||||
upgrade_disk: true
|
upgrade_disk: true
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
@ -268,7 +268,7 @@ hcloud_server:
|
||||||
description: Name of the server type of the server
|
description: Name of the server type of the server
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx22
|
sample: cpx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the server
|
description: Public IPv4 address of the server
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ hcloud_server_info:
|
||||||
description: Name of the server type of the server
|
description: Name of the server type of the server
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: cx22
|
sample: cpx22
|
||||||
ipv4_address:
|
ipv4_address:
|
||||||
description: Public IPv4 address of the server
|
description: Public IPv4 address of the server
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ def test_build_inventory_server():
|
||||||
"firewalls": [],
|
"firewalls": [],
|
||||||
},
|
},
|
||||||
"private_net": [],
|
"private_net": [],
|
||||||
"server_type": {"id": 1, "name": "cx11", "architecture": "x86"},
|
"server_type": {"id": 109, "name": "cpx22", "architecture": "x86"},
|
||||||
"datacenter": {
|
"datacenter": {
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"name": "hel1-dc2",
|
"name": "hel1-dc2",
|
||||||
|
|
@ -57,8 +57,8 @@ def test_build_inventory_server():
|
||||||
"id": 45921624,
|
"id": 45921624,
|
||||||
"name": "my-server",
|
"name": "my-server",
|
||||||
"status": "running",
|
"status": "running",
|
||||||
"type": "cx11",
|
"type": "cpx22",
|
||||||
"server_type": "cx11",
|
"server_type": "cpx22",
|
||||||
"architecture": "x86",
|
"architecture": "x86",
|
||||||
"location": "hel1",
|
"location": "hel1",
|
||||||
"datacenter": "hel1-dc2",
|
"datacenter": "hel1-dc2",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue