mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
docs: update deprecated server types
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.
This commit is contained in:
parent
a64fbec0f1
commit
35da4fa8df
14 changed files with 23 additions and 23 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 }}"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
- name: Create a volume
|
||||
hetzner.hcloud.volume:
|
||||
name: my-volume
|
||||
location: fsn1
|
||||
location: hel1
|
||||
size: 100
|
||||
state: present
|
||||
register: volume
|
||||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue