Skip to content

Commit

Permalink
feat: remove hcloud_ prefix from all modules names (ansible-collect…
Browse files Browse the repository at this point in the history
…ions#390)

##### SUMMARY

This simplifies the name of the modules from
`hetzner.hcloud.hcloud_firewall` to `hetzner.hcloud.firewall`. While
maintaining backward compatibility with the old names.

Further changes such as updating the test or the documentation will be
done in a future PR to maintain the git history when squashing the PRs.

##### ISSUE TYPE

- Feature Pull Request
  • Loading branch information
jooola authored Nov 20, 2023
1 parent ff43534 commit 933a162
Show file tree
Hide file tree
Showing 232 changed files with 117 additions and 46 deletions.
28 changes: 14 additions & 14 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ exclude_paths:
- .git/
- .github/
- changelogs/
- tests/integration/targets/hcloud_certificate
- tests/integration/targets/hcloud_firewall
- tests/integration/targets/hcloud_floating_ip
- tests/integration/targets/hcloud_load_balancer_network
- tests/integration/targets/hcloud_load_balancer_service
- tests/integration/targets/hcloud_load_balancer_target
- tests/integration/targets/hcloud_network
- tests/integration/targets/hcloud_placement_group
- tests/integration/targets/hcloud_primary_ip
- tests/integration/targets/hcloud_route
- tests/integration/targets/hcloud_server
- tests/integration/targets/hcloud_server_network
- tests/integration/targets/hcloud_ssh_key
- tests/integration/targets/hcloud_volume
- tests/integration/targets/certificate
- tests/integration/targets/firewall
- tests/integration/targets/floating_ip
- tests/integration/targets/load_balancer_network
- tests/integration/targets/load_balancer_service
- tests/integration/targets/load_balancer_target
- tests/integration/targets/network
- tests/integration/targets/placement_group
- tests/integration/targets/primary_ip
- tests/integration/targets/route
- tests/integration/targets/server
- tests/integration/targets/server_network
- tests/integration/targets/ssh_key
- tests/integration/targets/volume
- tests/integration/targets/setup_selfsigned_certificate
- tests/integration/targets/setup_ssh_keypair
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minor_changes:
- Removed the `hcloud_` prefix from all modules names, e.g. `hetzner.hcloud.hcloud_firewall`
was renamed to `hetzner.hcloud.firewall`. Old module names will continue working.
65 changes: 65 additions & 0 deletions meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1 +1,66 @@
requires_ansible: ">=2.13.0"

plugin_routing:
modules:
hcloud_certificate_info:
redirect: hetzner.hcloud.certificate_info
hcloud_certificate:
redirect: hetzner.hcloud.certificate
hcloud_datacenter_info:
redirect: hetzner.hcloud.datacenter_info
hcloud_firewall:
redirect: hetzner.hcloud.firewall
hcloud_floating_ip_info:
redirect: hetzner.hcloud.floating_ip_info
hcloud_floating_ip:
redirect: hetzner.hcloud.floating_ip
hcloud_image_info:
redirect: hetzner.hcloud.image_info
hcloud_iso_info:
redirect: hetzner.hcloud.iso_info
hcloud_load_balancer_info:
redirect: hetzner.hcloud.load_balancer_info
hcloud_load_balancer_network:
redirect: hetzner.hcloud.load_balancer_network
hcloud_load_balancer_service:
redirect: hetzner.hcloud.load_balancer_service
hcloud_load_balancer_target:
redirect: hetzner.hcloud.load_balancer_target
hcloud_load_balancer_type_info:
redirect: hetzner.hcloud.load_balancer_type_info
hcloud_load_balancer:
redirect: hetzner.hcloud.load_balancer
hcloud_location_info:
redirect: hetzner.hcloud.location_info
hcloud_network_info:
redirect: hetzner.hcloud.network_info
hcloud_network:
redirect: hetzner.hcloud.network
hcloud_placement_group:
redirect: hetzner.hcloud.placement_group
hcloud_primary_ip_info:
redirect: hetzner.hcloud.primary_ip_info
hcloud_primary_ip:
redirect: hetzner.hcloud.primary_ip
hcloud_rdns:
redirect: hetzner.hcloud.rdns
hcloud_route:
redirect: hetzner.hcloud.route
hcloud_server_info:
redirect: hetzner.hcloud.server_info
hcloud_server_network:
redirect: hetzner.hcloud.server_network
hcloud_server_type_info:
redirect: hetzner.hcloud.server_type_info
hcloud_server:
redirect: hetzner.hcloud.server
hcloud_ssh_key_info:
redirect: hetzner.hcloud.ssh_key_info
hcloud_ssh_key:
redirect: hetzner.hcloud.ssh_key
hcloud_subnetwork:
redirect: hetzner.hcloud.subnetwork
hcloud_volume_info:
redirect: hetzner.hcloud.volume_info
hcloud_volume:
redirect: hetzner.hcloud.volume
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_certificate
module: certificate
short_description: Create and manage certificates on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_certificate_info
module: certificate_info
short_description: Gather infos about your Hetzner Cloud certificates.
description:
- Gather facts about your Hetzner Cloud certificates.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_datacenter_info
module: datacenter_info
short_description: Gather info about the Hetzner Cloud datacenters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_firewall
module: firewall
short_description: Create and manage firewalls on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_floating_ip
module: floating_ip
short_description: Create and manage cloud Floating IPs on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_floating_ip_info
module: floating_ip_info
short_description: Gather infos about the Hetzner Cloud Floating IPs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_image_info
module: image_info
short_description: Gather infos about your Hetzner Cloud images.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

DOCUMENTATION = """
---
module: hcloud_iso_info
module: iso_info
short_description: Gather infos about the Hetzner Cloud ISO list.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_load_balancer
module: load_balancer
short_description: Create and manage cloud Load Balancers on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_load_balancer_info
module: load_balancer_info
short_description: Gather infos about your Hetzner Cloud Load Balancers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_load_balancer_network
module: load_balancer_network
short_description: Manage the relationship between Hetzner Cloud Networks and Load Balancers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_load_balancer_service
module: load_balancer_service
short_description: Create and manage the services of cloud Load Balancers on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_load_balancer_target
module: load_balancer_target
short_description: Manage Hetzner Cloud Load Balancer targets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_load_balancer_type_info
module: load_balancer_type_info
short_description: Gather infos about the Hetzner Cloud Load Balancer types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_location_info
module: location_info
short_description: Gather infos about your Hetzner Cloud locations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_network
module: network
short_description: Create and manage cloud Networks on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_network_info
module: network_info
short_description: Gather info about your Hetzner Cloud networks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_placement_group
module: placement_group
short_description: Create and manage placement groups on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_primary_ip
module: primary_ip
short_description: Create and manage cloud Primary IPs on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_primary_ip_info
module: primary_ip_info
short_description: Gather infos about the Hetzner Cloud Primary IPs.
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/hcloud_rdns.py → plugins/modules/rdns.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_rdns
module: rdns
short_description: Create and manage reverse DNS entries on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_route
module: route
short_description: Create and delete cloud routes on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_server
module: server
short_description: Create and manage cloud servers on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_server_info
module: server_info
short_description: Gather infos about your Hetzner Cloud servers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_server_network
module: server_network
short_description: Manage the relationship between Hetzner Cloud Networks and servers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_server_type_info
module: server_type_info
short_description: Gather infos about the Hetzner Cloud server types.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_ssh_key
module: ssh_key
short_description: Create and manage ssh keys on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_ssh_key_info
module: ssh_key_info
short_description: Gather infos about your Hetzner Cloud ssh_keys.
description:
- Gather facts about your Hetzner Cloud ssh_keys.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_subnetwork
module: subnetwork
short_description: Manage cloud subnetworks on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_volume
module: volume
short_description: Create and manage block Volume on the Hetzner Cloud.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DOCUMENTATION = """
---
module: hcloud_volume_info
module: volume_info
short_description: Gather infos about your Hetzner Cloud Volumes.
Expand Down
Loading

0 comments on commit 933a162

Please sign in to comment.