Jonas L.
39aa356c4c
feat: deprecate server_type_info
included_traffic
return value ( #532 )
...
### API Changes for Traffic Prices and Server Type Included Traffic
There will be a breaking change in the API regarding Traffic Prices and
Server Type Included Traffic on 2024-08-05. This release marks the
affected fields as `Deprecated`. Please check if this affects any of
your code and switch to the replacement fields where necessary.
You can learn more about this change in [our
changelog](https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format ).
2024-07-25 13:45:29 +02:00
Jonas L
19e586fa22
feat: use exponential backoff algorithm when polling actions ( #524 )
...
##### SUMMARY
Replace the constant poll interval of 1 second, with a truncated
exponential back off algorithm with jitter.
Below is a suite of poll interval (in seconds) generated by the new
algorithm:
```
1.49
2.14
5.46
6.51
6.57
5.57
5.98
7.13
6.59
7.10
5.54
5.03
6.56
5.96
6.72
7.21
7.05
5.31
5.60
6.33
6.82
5.42
6.08
6.60
TOTAL: 140.77
```
2024-07-04 15:07:05 +02:00
renovate[bot]
9adb8b3981
chore(deps): update dependency hcloud to v2 ( #523 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [hcloud](https://togithub.com/hetznercloud/hcloud-python )
([changelog](https://togithub.com/hetznercloud/hcloud-python/blob/main/CHANGELOG.md ))
| `1.35.0` -> `2.0.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/2.0.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/2.0.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.35.0/2.0.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.35.0/2.0.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v2.0.1`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#201-2024-07-03 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v2.0.0...v2.0.1 )
##### Bug Fixes
- `assignee_type` is required when creating a primary ip
([#​409](https://togithub.com/hetznercloud/hcloud-python/issues/409 ))
([bce5e94](bce5e940e2
))
- clean unused arguments in the `Client.servers.rebuild` method
([#​407](https://togithub.com/hetznercloud/hcloud-python/issues/407 ))
([6d33c3c](6d33c3cff5
))
- details are optional in API errors
([#​411](https://togithub.com/hetznercloud/hcloud-python/issues/411 ))
([f1c6594](f1c6594dee
))
- rename `trace_id` variable to `correlation_id`
([#​408](https://togithub.com/hetznercloud/hcloud-python/issues/408 ))
([66a0f54](66a0f54699
))
###
[`v2.0.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#200-2024-07-03 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.35.0...v2.0.0 )
##### ⚠ BREAKING CHANGES
- return full rebuild response in `Client.servers.rebuild`
([#​406](https://togithub.com/hetznercloud/hcloud-python/issues/406 ))
- make `datacenter` argument optional when creating a primary ip
([#​363](https://togithub.com/hetznercloud/hcloud-python/issues/363 ))
- remove deprecated `include_wildcard_architecture` argument in
`IsosClient.get_list` and `IsosClient.get_all`
([#​402](https://togithub.com/hetznercloud/hcloud-python/issues/402 ))
- make `Client.request` `tries` a private argument
([#​399](https://togithub.com/hetznercloud/hcloud-python/issues/399 ))
- make `Client.poll_interval` a private property
([#​398](https://togithub.com/hetznercloud/hcloud-python/issues/398 ))
- return empty dict on empty responses in `Client.request`
([#​400](https://togithub.com/hetznercloud/hcloud-python/issues/400 ))
- remove deprecated `hcloud.hcloud` module
([#​401](https://togithub.com/hetznercloud/hcloud-python/issues/401 ))
- move `hcloud.__version__.VERSION` to `hcloud.__version__`
([#​397](https://togithub.com/hetznercloud/hcloud-python/issues/397 ))
##### Features
- add `trace_id` to API exceptions
([#​404](https://togithub.com/hetznercloud/hcloud-python/issues/404 ))
([8375261](8375261da3
))
- allow using a custom poll_interval function
([#​403](https://togithub.com/hetznercloud/hcloud-python/issues/403 ))
([93eb56b](93eb56ba4d
))
- make `Client.poll_interval` a private property
([#​398](https://togithub.com/hetznercloud/hcloud-python/issues/398 ))
([d5f24db](d5f24db281
))
- make `Client.request` `tries` a private argument
([#​399](https://togithub.com/hetznercloud/hcloud-python/issues/399 ))
([428ea7e](428ea7e3be
))
- move `hcloud.__version__.VERSION` to `hcloud.__version__`
([#​397](https://togithub.com/hetznercloud/hcloud-python/issues/397 ))
([4e3f638](4e3f638862
)),
closes
[#​234](https://togithub.com/hetznercloud/hcloud-python/issues/234 )
- remove deprecated `hcloud.hcloud` module
([#​401](https://togithub.com/hetznercloud/hcloud-python/issues/401 ))
([db37e63](db37e633eb
))
- remove deprecated `include_wildcard_architecture` argument in
`IsosClient.get_list` and `IsosClient.get_all`
([#​402](https://togithub.com/hetznercloud/hcloud-python/issues/402 ))
([6b977e2](6b977e2da5
))
- return empty dict on empty responses in `Client.request`
([#​400](https://togithub.com/hetznercloud/hcloud-python/issues/400 ))
([9f46adb](9f46adb946
))
- return full rebuild response in `Client.servers.rebuild`
([#​406](https://togithub.com/hetznercloud/hcloud-python/issues/406 ))
([1970d84](1970d84bec
))
##### Bug Fixes
- make `datacenter` argument optional when creating a primary ip
([#​363](https://togithub.com/hetznercloud/hcloud-python/issues/363 ))
([ebef774](ebef77464c
))
##### Dependencies
- update dependency coverage to >=7.5,<7.6
([#​386](https://togithub.com/hetznercloud/hcloud-python/issues/386 ))
([5660691](5660691ebd
))
- update dependency mypy to >=1.10,<1.11
([#​387](https://togithub.com/hetznercloud/hcloud-python/issues/387 ))
([35c933b](35c933bd21
))
- update dependency myst-parser to v3
([#​385](https://togithub.com/hetznercloud/hcloud-python/issues/385 ))
([9f18270](9f18270489
))
- update dependency pylint to >=3,<3.3
([#​391](https://togithub.com/hetznercloud/hcloud-python/issues/391 ))
([4a6f005](4a6f005cb0
))
- update dependency pytest to >=8,<8.3
([#​390](https://togithub.com/hetznercloud/hcloud-python/issues/390 ))
([584a36b](584a36b658
))
- update dependency sphinx to >=7.3.4,<7.4
([#​383](https://togithub.com/hetznercloud/hcloud-python/issues/383 ))
([69c2e16](69c2e16073
))
- update pre-commit hook asottile/pyupgrade to v3.16.0
([0ce5fbc](0ce5fbccba
))
- update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0
([5ef25ab](5ef25ab396
))
- update pre-commit hook psf/black-pre-commit-mirror to v24.4.0
([0941fbf](0941fbfab2
))
- update pre-commit hook psf/black-pre-commit-mirror to v24.4.1
([fec08c5](fec08c5323
))
- update pre-commit hook psf/black-pre-commit-mirror to v24.4.2
([#​389](https://togithub.com/hetznercloud/hcloud-python/issues/389 ))
([2b2e21f](2b2e21f613
))
- update pre-commit hook pycqa/flake8 to v7.1.0
([3bc651d](3bc651d50d
))
##### Documentation
- add v2 upgrade notes
([#​405](https://togithub.com/hetznercloud/hcloud-python/issues/405 ))
([c77f771](c77f771e2b
))
- cx11 is name, not an id
([#​381](https://togithub.com/hetznercloud/hcloud-python/issues/381 ))
([b745d40](b745d4049f
))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuOSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS45IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-07-03 15:05:12 +02:00
Jonas L
49e21ae4fe
fix: keep deprecated alias for another major version ( #515 )
...
This was not removed during the v4.0.0 release, we must therefor
reschedule it for the v5.0.0 release.
2024-06-11 16:55:27 +02:00
Jonas L
fb8c2a9f58
chore: replace deprecated server type with cx22 ( #510 )
...
Learn more:
https://docs.hetzner.cloud/changelog#2024-06-06-old-server-types-with-shared-intel-vcpus-are-deprecated
- Updated docs with newer server types
- Use ARM server type for tests
2024-06-11 15:30:47 +02:00
Jonas L
07095529a4
fix: improve actions waiting timeout based on data ( #488 )
...
##### SUMMARY
Some action waiting time have been set to an arbitrary number, which
could force the users to wait for too long, while we could have raised a
timeout.
This changes the arbitrary numbers with rough estimate based on the
average actions time and some leeway.
2024-04-15 11:01:12 +02:00
Jonas L
d88ecdbccc
feat: rename server image_allow_deprecated
option ( #487 )
...
##### SUMMARY
Renamed the `allow_deprecated_image` to `image_allow_deprecated`
argument to ensure the `image` related options use the same namespace.
This is backward compatible, as we introduce a new alias for the old
option name.
2024-04-04 12:40:24 +02:00
Jonas L
7fdefcfa02
feat: use resources name or ID in server module arguments ( #484 )
...
##### SUMMARY
- Allow passing either the name or the ID of a resource to the different
arguments of the server module.
- Split the code into multiple smaller function and improve the code.
- Improve the module arguments documentation.
- Refactor and cleanups.
2024-04-04 11:54:41 +02:00
Jonas L
022cca4799
docs: use argument spec to mark force_upgrade
as deprecated ( #481 )
...
##### SUMMARY
Leverage the alias feature from the argument spec, and re-declare the
deprecation of the `force_upgrade` argument.
2024-04-04 11:49:16 +02:00
Jonas L
4bb02b9cd2
refactor: remove unneeded to_native
calls ( #477 )
...
##### SUMMARY
Since we only support python >=3.8, the `to_native` python2/3
compatibility function is not needed anymore. We only keep it for
printing a traceback free exception message. Where a type conversion is
needed, we use the built-in `str()` function.
2024-03-27 14:11:30 +01:00
jjeff07
51afb23166
feat: assign primary ip to a server on create ( #465 )
...
##### SUMMARY
Fixes #464
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
primary_ip
---------
Co-authored-by: jo <ljonas@riseup.net>
2024-03-11 18:20:30 +01:00
Jonas L
1ae6769210
fix: return sorted alias_ips
in server_network
module ( #458 )
...
##### SUMMARY
- test: use testing framework for server_network integration tests
- fix: return sorted alias_ips in server_network module
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
server_network
2024-02-07 11:45:37 +01:00
Jonas L
55d26162b3
fix!: always return iso-8601 formatted date time ( #453 )
...
##### SUMMARY
Fixes #91
Always return datetime as iso-8601 formatted strings.
##### ISSUE TYPE
- Bugfix Pull Request
2024-02-05 12:18:53 +01:00
Jonas L
86b76620da
fix: load balancer invalid cookie lifetime value returned ( #452 )
...
##### SUMMARY
The load balancer cookie lifetime field now returns the cookie lifetime
value, instead of the cookie name.
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
load_balancer_info
load_balancer_service
2024-02-05 09:00:26 +01:00
Jonas L
742cfe6d74
fix: allow renaming networks ( #449 )
...
##### SUMMARY
The network could not be renamed before. This was discovered while
working on #448
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
network
2024-02-02 12:53:54 +01:00
Jonas L
559d31561a
feat: allow forcing the deletion of firewalls that are still in use ( #447 )
...
##### SUMMARY
- Do not silence 'firewall still in use' deletions errors.
- Allow forcing the deletion of a firewall that is still in use.
Fixes #380
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
firewall
2024-02-02 09:48:56 +01:00
Jonas L
2757fe745f
feat: improve firewall resources management ( #324 )
...
##### SUMMARY
- firewall - Return resources the firewall is `applied_to`.
- firewall_info - Add new `firewall_info` module to gather firewalls
info.
- firewall_resource - Add new `firewall_resource` module to manage
firewalls resources.
Fixes #111
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
firewall
firewall_info
firewall_resource
---------
Co-authored-by: Julian Tölle <julian.toelle97@gmail.com>
2024-02-01 16:50:13 +01:00
renovate[bot]
c8c32f58f5
deps: update pre-commit hook psf/black-pre-commit-mirror to v24 ( #443 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
|
[psf/black-pre-commit-mirror](https://togithub.com/psf/black-pre-commit-mirror )
| repository | major | `23.12.1` -> `24.1.0` |
Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://togithub.com/renovatebot/renovate/discussions/new )
if you have any questions.
---
### Release Notes
<details>
<summary>psf/black-pre-commit-mirror
(psf/black-pre-commit-mirror)</summary>
###
[`v24.1.0`](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0 )
[Compare
Source](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.1...24.1.0 )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-26 11:22:13 +01:00
Jonas L
dc75084743
docs: improve firewall module documentation ( #435 )
...
##### SUMMARY
- Improve link to other reference (plugins/modules/options)
- Add details to option description.
- Reorder options for readability
2023-12-21 17:47:56 +01:00
Jonas L
4cfdf50b26
feat: replace ansible.netcommon
utils with python3 ipaddress
module ( #416 )
...
##### SUMMARY
Replace `ansible.netcommon` deprecated ipaddr utils with python
`ipaddress` module. The `ansible.netcommon` collection is no longer
required by the collections. We still use the `ansible.utils`
collections for testing
2023-12-12 11:50:45 +01:00
Jonas L
df8c3b6a59
refactor: add future annotations imports ( #398 )
...
##### SUMMARY
This adds future annotations imports to benefit from the modern python
typing system.
2023-11-23 14:53:10 +01:00
Jonas L
328dfb8b0f
refactor: start using new modules names ( #393 )
...
##### SUMMARY
Update all references to modules to use the new module names.
Continuation of #390
2023-11-21 09:40:11 +01:00
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
Simon Haas
ff43534143
docs: fix typo ( #391 )
2023-11-20 12:39:08 +01:00
renovate[bot]
8c846f3b68
deps: update dependency hcloud to v1.32.0 ( #389 )
...
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [hcloud](https://togithub.com/hetznercloud/hcloud-python )
([changelog](https://togithub.com/hetznercloud/hcloud-python/blob/main/CHANGELOG.md ))
| `1.31.0` -> `1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.31.0/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.31.0/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v1.32.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1320-2023-11-17 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.31.0...v1.32.0 )
##### Features
- allow returning root_password in servers rebuild
([#​276](https://togithub.com/hetznercloud/hcloud-python/issues/276 ))
([38e098a](38e098a411
))
##### Dependencies
- update dependency mypy to >=1.7,<1.8
([#​325](https://togithub.com/hetznercloud/hcloud-python/issues/325 ))
([7b59a2d](7b59a2decc
))
- update pre-commit hook pre-commit/mirrors-prettier to v3.1.0
([#​326](https://togithub.com/hetznercloud/hcloud-python/issues/326 ))
([213b661](213b661d89
))
- update pre-commit hook psf/black-pre-commit-mirror to v23.10.1
([#​322](https://togithub.com/hetznercloud/hcloud-python/issues/322 ))
([999afe3](999afe37e0
))
- update pre-commit hook psf/black-pre-commit-mirror to v23.11.0
([#​324](https://togithub.com/hetznercloud/hcloud-python/issues/324 ))
([7b2a24e](7b2a24ecf6
))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-11-20 09:25:57 +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
urbanekpj
c3e4c0ea0a
feat: add created
field to server and server_info modules ( #381 )
...
##### SUMMARY
Add missing "created" field to ansible result
based on documentation
https://docs.hetzner.cloud/#servers-get-all-servers
```
created
string required
Point in time when the Resource was created (in ISO-8601 format)
```
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_server_info
hcloud_server
Co-authored-by: Pawel Urbanek <pawel.urbanek@medvc.eu>
2023-11-06 17:10:54 +01:00
Jonas L
084e04d576
feat: add server_types to datacenter info module ( #379 )
...
##### SUMMARY
Closes #204
Return the `server_types` dict when querying the datacenters.
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_datacenter_info
2023-11-06 15:23:20 +01:00
Jonas L
c491799f6f
docs: fix certificates module options and examples ( #377 )
...
##### SUMMARY
Closes #374
Closes #375
##### ISSUE TYPE
- Docs Pull Request
##### COMPONENT NAME
hcloud_certificates
2023-10-30 17:30:49 +01:00
Jonas L
41ea82cc07
refactor: don't use ISO deprecated field ( #371 )
...
##### SUMMARY
The deprecated field is deprecated, we must use the deprecation object
instead.
##### COMPONENT NAME
hcloud_iso_info
2023-10-23 13:36:14 +02:00
Jonas L
a93dbaa428
feat: add load_balancer algorithm option ( #368 )
...
##### SUMMARY
Allow to configure load balancers algorithm.
Closes #289
Depends on #367
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_load_balancer
2023-10-20 12:20:09 +02:00
renovate[bot]
3058995219
deps: update pre-commit hook ansible/ansible-lint to v6.21.0 ( #365 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [ansible/ansible-lint](https://togithub.com/ansible/ansible-lint ) |
repository | minor | `v6.20.3` -> `v6.21.0` |
Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://togithub.com/renovatebot/renovate/discussions/new )
if you have any questions.
---
### Release Notes
<details>
<summary>ansible/ansible-lint (ansible/ansible-lint)</summary>
###
[`v6.21.0`](https://togithub.com/ansible/ansible-lint/releases/tag/v6.21.0 )
[Compare
Source](https://togithub.com/ansible/ansible-lint/compare/v6.20.3...v6.21.0 )
#### Minor Changes
- Allow linting plugin EXAMPLES as playbooks
([#​3309](https://togithub.com/ansible/ansible-lint/issues/3309 ))
[@​Qalthos](https://togithub.com/Qalthos )
#### Bugfixes
- Add support for Rocky
([#​3843](https://togithub.com/ansible/ansible-lint/issues/3843 ))
[@​facorazza](https://togithub.com/facorazza )
- Update supported Ubuntu versions in `meta.json`
([#​3845](https://togithub.com/ansible/ansible-lint/issues/3845 ))
[@​mcdonnnj](https://togithub.com/mcdonnnj )
- Avoid false positives for handler in roles handlers directory
([#​3838](https://togithub.com/ansible/ansible-lint/issues/3838 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Hide stacktrace when loading invalid yaml
([#​3844](https://togithub.com/ansible/ansible-lint/issues/3844 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Add some platforms to `meta.json`
([#​3841](https://togithub.com/ansible/ansible-lint/issues/3841 ))
[@​mcdonnnj](https://togithub.com/mcdonnnj )
- Temporary avoid auto-fixing YAML files not owned by ansible
([#​3837](https://togithub.com/ansible/ansible-lint/issues/3837 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Add environment variable for skipping schema update
([#​3835](https://togithub.com/ansible/ansible-lint/issues/3835 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Avoid creating temporary YAML files inside source tree
([#​3819](https://togithub.com/ansible/ansible-lint/issues/3819 ))
[@​Qalthos](https://togithub.com/Qalthos )
- Document environment variables
([#​3833](https://togithub.com/ansible/ansible-lint/issues/3833 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Update schemas
([#​3832](https://togithub.com/ansible/ansible-lint/issues/3832 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Support complex requirements in argument_specs.yml
([#​3823](https://togithub.com/ansible/ansible-lint/issues/3823 ))
[@​tapetersen](https://togithub.com/tapetersen )
- Fix SARIF-formatter severity levels
([#​3824](https://togithub.com/ansible/ansible-lint/issues/3824 ))
[@​4ch1m](https://togithub.com/4ch1m )
- Add play level autofix for key-order rule
([#​3815](https://togithub.com/ansible/ansible-lint/issues/3815 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Add support for python 3.12
([#​3813](https://togithub.com/ansible/ansible-lint/issues/3813 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Update SPDX license list
([#​3814](https://togithub.com/ansible/ansible-lint/issues/3814 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Use checkout action in install docs
([#​3810](https://togithub.com/ansible/ansible-lint/issues/3810 ))
[@​gma](https://togithub.com/gma )
- Fix actions-tagger arguments
([#​3808](https://togithub.com/ansible/ansible-lint/issues/3808 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-10-19 12:41:44 +02: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
76ef636f07
feat: add deprecation field to hcloud_iso_info ( #357 )
...
##### SUMMARY
See these changelog entries for the announcement:
-
https://docs.hetzner.cloud/changelog#2023-10-12-deprecation-info-for-isos
-
https://docs.hetzner.cloud/changelog#2023-10-12-field-deprecated-on-isos-is-now-deprecated
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_iso_info
2023-10-16 11:16:31 +02:00
Jonas L
76c1abf447
fix: firewall port argument is required with udp or tcp ( #345 )
...
##### SUMMARY
When managing a tcp/udp firewall rule, provide a clear error message
when the port is missing from the rule.
Closes #344
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
hcloud_firewall
2023-10-04 10:59:50 +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
fb35516e76
fix: invalid field in load_balancer_service health_check.http return data ( #333 )
...
##### SUMMARY
In the `hcloud_load_balancer_service` return data, the
`health_check.http.certificates` field must be named
`health_check.http.status_codes`.
https://docs.hetzner.cloud/#load-balancers-get-a-load-balancer
Fixes #332
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
hcloud_load_balancer_service
2023-09-25 12:20:18 +02:00
Jonas L
aeda12275c
chore: add antsibull-docs lint-collection pre-commit hook ( #315 )
...
##### SUMMARY
This check will run a linter against the documentation. I was already
able to fix a few errors.
2023-08-31 15:20:14 +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
urbanekpj
8f42c4d950
fix: string formatting error on deprecated server type warning ( #309 )
...
##### SUMMARY
after deprecating "server type" warning should be shown but due to error
in string message there is crash.
```
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 942, in <module>
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 925, in main
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 858, in present_server
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 405, in _create_server
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 541, in _get_server_type
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 558, in _check_and_warn_deprecated_server
TypeError: %i format: a real number is required, not str
```
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
hcloud_server
---------
Co-authored-by: jo <ljonas@riseup.net>
2023-08-23 14:08:06 +02:00
Jonas L
5475a9929a
feat: target health status in hcloud_load_balancer_info ( #305 )
2023-08-17 15:25:14 +02:00
Jonas L
4bb2bb80fa
feat: query floating ip info by name ( #303 )
...
##### SUMMARY
Fixes #302
The feature was missing, this make the floating_ip_info module consistent with what is expected to be implemented.
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
floating_ip_info
2023-08-17 11:50:19 +02:00
Jonas L
e461a890fa
fix: consistently fail on invalid ID in *_info
modules ( #301 )
...
* fix: consistently fail on invalid ID in `*_info` modules
* remove unused import
2023-08-16 16:14:55 +02:00
Jonas L
5c4079e059
fix: do not error on location_info invalid id ( #292 )
...
* test: fix hcloud_location_info with wrong id test
* chore: cleanup hcloud_location_info tests
* fix: error on location_info invalid id
2023-08-09 12:42:22 +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