Jonas L
933a16249b
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
2023-11-20 13:21:23 +01:00
Jonas L
2e82e0e6ef
docs: remove hcloud-python requirements from modules ( #388 )
...
##### SUMMARY
Since we vendored the hcloud-python library, those requirements are not
needed anymore.
##### ISSUE TYPE
- Docs Pull Request
2023-11-17 15:12:52 +01:00
Jonas L
5e425c56c2
feat: allow selecting a resource using its ID ( #361 )
...
##### SUMMARY
Allow referring to resources using their IDs for:
- hcloud_load_balancer_network
- hcloud_load_balancer_service
- hcloud_load_balancer_target
- hcloud_rdns
- hcloud_route
- hcloud_server_network
- hcloud_subnetwork
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
- hcloud_load_balancer_network
- hcloud_load_balancer_service
- hcloud_load_balancer_target
- hcloud_rdns
- hcloud_route
- hcloud_server_network
- hcloud_subnetwork
2023-10-18 10:28:42 +02:00
Jonas L
94190ae6cb
refactor: move module vars out of __init__
( #336 )
...
##### SUMMARY
- move module vars out of `__init__`
- add modules type hints
- catch hcloud exception for api calls
2023-09-26 09:41:01 +02:00
Jonas L
6844317920
refactor: fix pylint invalid variable name ( #312 )
...
##### SUMMARY
Pylint complains about too short/meaningless variable names. We want to
be explicit when naming variables.
2023-08-25 16:19:15 +02:00
Jonas L
c56cbab1a0
refactor: use f-strings ( #310 )
...
##### SUMMARY
Replace string interpolation with f-strings. Improves readability, and
should help prevent #309
2023-08-24 11:27:40 +02:00
Jonas L
a0e91d942a
refactor: rename ansible module classes ( #284 )
...
* refactor: rename Hcloud class to AnsibleHCloud
* refactor: rename AnsibleHCloud* modules
* refactor: remove Hcloud deprecation wrapper
2023-08-04 09:24:14 +02:00
Jonas L
98afa99904
refactor: use super() to reference parent class ( #280 )
2023-08-02 12:05:00 +02:00
Jonas L
64b6804b41
refactor: use relative imports for local modules ( #279 )
2023-07-31 10:12:55 +02:00
Jonas L
c15377c672
feat: improve hcloud library exceptions handling ( #243 )
2023-07-20 14:34:48 +02:00
Jonas L
51f705c343
chore: use fqcn module names ( #273 )
2023-07-20 12:14:57 +02:00
Jonas L
0fcf4aad22
refactor: use new to_native function path ( #238 )
...
e535eb625b/lib/ansible/module_utils/_text.py
2023-06-27 13:17:21 +02:00
Jonas L
dfff49e31f
chore: setup pre-commit ( #234 )
...
* chore: add pre-commit config
* chore: fix pre-commit errors
* chore: add black pre-commit hook
* style: format python files with black
* chore: add isort pre-commit hook
* style: format python files using isort
* chore: add pyupgrade pre-commit hook
* refactor: upgrade code to python3.7
* Allow stacking PRs
Co-authored-by: Julian Tölle <julian.toelle97@gmail.com>
---------
Co-authored-by: Julian Tölle <julian.toelle97@gmail.com>
2023-06-27 11:50:13 +02:00
Julian Tölle
43ae035040
lint: fix unused-import errors ( #195 )
...
The linting rule `unused-import` was recently activated in ansible-test.
This commit removes all unused imports to satify the linting rule.
2023-03-31 09:01:22 +02:00
René Moser
1d568f3ac7
loadbalancer_: improve error handlings ( #138 )
...
* loadbalancer_: improve error handlings
* streamline a bit to make ansible 2.9 pass
* handle race condition
2022-06-20 06:26:26 +02:00
Lukas Kämmerling
eb45ae014c
Fix error handling and add test cases ( #58 )
...
* Fix error handling and add test cases
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2021-02-24 13:37:58 +01:00
Lukas Kämmerling
0617bc65f8
Add hcloud_load_balancer_info module ( #41 )
...
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
2020-11-27 12:25:06 +01:00
Lukas Kämmerling
769a63ff22
Implement Load Balancers and Certificates and prepare release ( #13 )
2020-06-29 15:41:30 +02:00