feat: remove hcloud_ prefix from all modules names (#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
This commit is contained in:
Jonas L 2023-11-20 13:21:23 +01:00 committed by GitHub
parent ff43534143
commit 933a16249b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
232 changed files with 117 additions and 46 deletions

View file

@ -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

View file

@ -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.

View file

@ -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

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_certificate
module: certificate
short_description: Create and manage certificates on the Hetzner Cloud.

View file

@ -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.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_datacenter_info
module: datacenter_info
short_description: Gather info about the Hetzner Cloud datacenters.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_firewall
module: firewall
short_description: Create and manage firewalls on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_floating_ip
module: floating_ip
short_description: Create and manage cloud Floating IPs on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_floating_ip_info
module: floating_ip_info
short_description: Gather infos about the Hetzner Cloud Floating IPs.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_image_info
module: image_info
short_description: Gather infos about your Hetzner Cloud images.

View file

@ -7,7 +7,7 @@
DOCUMENTATION = """
---
module: hcloud_iso_info
module: iso_info
short_description: Gather infos about the Hetzner Cloud ISO list.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_load_balancer
module: load_balancer
short_description: Create and manage cloud Load Balancers on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_load_balancer_info
module: load_balancer_info
short_description: Gather infos about your Hetzner Cloud Load Balancers.

View file

@ -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

View file

@ -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.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_load_balancer_target
module: load_balancer_target
short_description: Manage Hetzner Cloud Load Balancer targets

View file

@ -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.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_location_info
module: location_info
short_description: Gather infos about your Hetzner Cloud locations.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_network
module: network
short_description: Create and manage cloud Networks on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_network_info
module: network_info
short_description: Gather info about your Hetzner Cloud networks.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_placement_group
module: placement_group
short_description: Create and manage placement groups on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_primary_ip
module: primary_ip
short_description: Create and manage cloud Primary IPs on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_primary_ip_info
module: primary_ip_info
short_description: Gather infos about the Hetzner Cloud Primary IPs.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_rdns
module: rdns
short_description: Create and manage reverse DNS entries on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_route
module: route
short_description: Create and delete cloud routes on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_server
module: server
short_description: Create and manage cloud servers on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_server_info
module: server_info
short_description: Gather infos about your Hetzner Cloud servers.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_server_network
module: server_network
short_description: Manage the relationship between Hetzner Cloud Networks and servers

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_server_type_info
module: server_type_info
short_description: Gather infos about the Hetzner Cloud server types.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_ssh_key
module: ssh_key
short_description: Create and manage ssh keys on the Hetzner Cloud.

View file

@ -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.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_subnetwork
module: subnetwork
short_description: Manage cloud subnetworks on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_volume
module: volume
short_description: Create and manage block Volume on the Hetzner Cloud.

View file

@ -6,7 +6,7 @@
DOCUMENTATION = """
---
module: hcloud_volume_info
module: volume_info
short_description: Gather infos about your Hetzner Cloud Volumes.

View file

@ -2,7 +2,7 @@
# Sync the integration test files from the template to all the integrations targets.
integration_targets="tests/integration/targets/hcloud_"
integration_targets="tests/integration/targets/"
integration_common="tests/integration/common"
# banner
@ -20,6 +20,9 @@ copy_file() {
}
for target in "$integration_targets"*; do
if [[ "$(basename "$target")" = setup_* ]]; then
continue
fi
copy_file "$integration_common"/defaults/main/common.yml "$target"/defaults/main/common.yml
copy_file "$integration_common"/tasks/main.yml "$target"/tasks/main.yml
done

Some files were not shown because too many files have changed in this diff Show more