Commit graph

378 commits

Author SHA1 Message Date
Hetzner Cloud Bot
03dfeb2f2b
chore(main): release 4.0.1 (#517)
🤖 I have created a release *beep* *boop*
---


##
[4.0.1](https://github.com/ansible-collections/hetzner.hcloud/compare/4.0.0...4.0.1)
(2024-06-11)


### Bug Fixes

* keep deprecated alias for another major version
([#515](https://github.com/ansible-collections/hetzner.hcloud/issues/515))
([49e21ae](49e21ae4fe))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-06-11 16:57:06 +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
Hetzner Cloud Bot
19e5595a9c
chore(main): release 4.0.0 (#514)
🤖 I have created a release *beep* *boop*
---


##
[4.0.0](https://github.com/ansible-collections/hetzner.hcloud/compare/3.1.1...4.0.0)
(2024-06-11)


### ⚠ BREAKING CHANGES

* drop support for ansible-core 2.14
([#512](https://github.com/ansible-collections/hetzner.hcloud/issues/512))

### Features

* drop support for ansible-core 2.14
([#512](https://github.com/ansible-collections/hetzner.hcloud/issues/512))
([8157f9a](8157f9a250))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-06-11 16:28:36 +02:00
Jonas L
8157f9a250
feat!: drop support for ansible-core 2.14 (#512)
##### SUMMARY

ansible-core 2.14 is EOL since 20 May 2024.

https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
2024-06-11 16:21:03 +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
0dc857830d
test: add workaround to prevent a timeout during the server deletion (#513)
When the following steps are executed, the server deletion fails with a
timeout:
- delete primary IP (attached to the server)
- delete server
- timeout after 5 minutes on server delete action


Adding the 2 seconds pause will work around this timeout.
2024-06-10 18:33:41 +02:00
renovate[bot]
6cff1a3a99 deps: update pre-commit hook asottile/pyupgrade to v3.16.0 2024-06-09 00:27:22 +00:00
renovate[bot]
e34ff6d295 deps: update pre-commit hook ansible/ansible-lint to v24.6.0 2024-06-04 21:18:05 +00:00
Jonas L
132b378e92
ci: add ansible-core 2.17 to the test matrix (#508)
##### SUMMARY

See
https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix

Also bump the test containers to version v6.0.0.
2024-05-31 09:25:02 +02:00
renovate[bot]
ad5b95856f deps: update pre-commit hook ansible-community/antsibull-changelog to v0.28.0 2024-05-27 00:23:40 +00:00
Jonas L
cbd2e78bf5
ci: use new release-please action (#506) 2024-05-24 16:15:08 +02:00
renovate[bot]
2b38e0363a deps: update pre-commit hook ansible-community/antsibull-changelog to v0.27.0 2024-05-20 22:30:54 +00:00
renovate[bot]
a95c6ccfb0 deps: update pre-commit hook ansible/ansible-lint to v24.5.0 2024-05-15 23:58:26 +00:00
renovate[bot]
81ea6252f4
deps: update dependency antsibull-docs to >=2.11,<2.12 (#503)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[antsibull-docs](https://togithub.com/ansible-community/antsibull-docs)
([changelog](https://togithub.com/ansible-community/antsibull-docs/tree/main/CHANGELOG.md))
| `>=2.10,<2.11` -> `>=2.11,<2.12` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/antsibull-docs/2.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/antsibull-docs/2.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/antsibull-docs/2.10.0/2.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/antsibull-docs/2.10.0/2.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ansible-community/antsibull-docs (antsibull-docs)</summary>

###
[`v2.11.0`](https://togithub.com/ansible-community/antsibull-docs/releases/tag/2.11.0)

[Compare
Source](https://togithub.com/ansible-community/antsibull-docs/compare/2.10.0...2.11.0)

##### Release Summary

Feature and bugfix release.

##### Minor Changes

- Support examples for role entrypoints
([#&#8203;244](https://togithub.com/ansible-community/antsibull-docs/pull/244)).

##### Bugfixes

- Fix handling of <code>choices</code> that are dictionaries for
<code>type=list</code>
([#&#8203;276](https://togithub.com/ansible-community/antsibull-docs/pull/276)).
- Fix handling of <code>default</code> for <code>type=list</code> if
<code>choices</code> is present
([#&#8203;276](https://togithub.com/ansible-community/antsibull-docs/pull/276)).

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4zNDAuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 08:32:57 +02:00
renovate[bot]
e65e605401 deps: update pre-commit hook ansible/ansible-lint to v24.2.3 2024-04-30 15:44:06 +00:00
renovate[bot]
6cbbb43630 deps: update pre-commit hook psf/black-pre-commit-mirror to v24.4.2 2024-04-26 14:39:35 +00:00
renovate[bot]
1bcc78674c
deps: update pre-commit hook psf/black-pre-commit-mirror to v24.4.1 (#499)
[![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 | patch | `24.4.0` -> `24.4.1` |

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.4.1`](https://togithub.com/psf/black-pre-commit-mirror/compare/24.4.0...24.4.1)

[Compare
Source](https://togithub.com/psf/black-pre-commit-mirror/compare/24.4.0...24.4.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-25 08:56:29 +02:00
Hetzner Cloud Bot
b42ebac72d
chore(main): release 3.1.1 (#497)
🤖 I have created a release *beep* *boop*
---


##
[3.1.1](https://github.com/ansible-collections/hetzner.hcloud/compare/3.1.0...3.1.1)
(2024-04-16)


### Bug Fixes

* **inventory:** ensure host ipv6 variable is json serializable
([#496](https://github.com/ansible-collections/hetzner.hcloud/issues/496))
([a98cf72](a98cf72f92))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-04-16 12:27:43 +02:00
Jonas L
a98cf72f92
fix(inventory): ensure host ipv6 variable is json serializable (#496)
##### SUMMARY

Fix https://github.com/ansible-collections/hetzner.hcloud/issues/495
Related to
https://github.com/ansible-collections/hetzner.hcloud/pull/477

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME
inventory
2024-04-16 11:48:03 +02:00
renovate[bot]
50a8d02e2d
deps: update dependency antsibull-docs to >=2.10,<2.11 (#494)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[antsibull-docs](https://togithub.com/ansible-community/antsibull-docs)
([changelog](https://togithub.com/ansible-community/antsibull-docs/tree/main/CHANGELOG.md))
| `>=2.9,<2.10` -> `>=2.10,<2.11` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/antsibull-docs/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/antsibull-docs/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/antsibull-docs/2.9.0/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/antsibull-docs/2.9.0/2.10.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ansible-community/antsibull-docs (antsibull-docs)</summary>

###
[`v2.10.0`](https://togithub.com/ansible-community/antsibull-docs/releases/tag/2.10.0)

[Compare
Source](https://togithub.com/ansible-community/antsibull-docs/compare/2.9.0...2.10.0)

##### Release Summary

Bugfix and feature release.

##### Minor Changes

- It is now possible to render the collection changelog as part of the
collection docsite by using the <code>changelog</code> option in
<code>docs/docsite/config.yml</code>
([#&#8203;31](https://togithub.com/ansible-community/antsibull-docs/issues/31),
[#&#8203;267](https://togithub.com/ansible-community/antsibull-docs/pull/267)).

##### Bugfixes

- Fix internal links to options and return values in simplified RST
output
([#&#8203;269](https://togithub.com/ansible-community/antsibull-docs/pull/269)).
- Include role in role attribute references
([#&#8203;269](https://togithub.com/ansible-community/antsibull-docs/pull/269)).

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yOTMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI5My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-16 08:34:43 +02:00
Hetzner Cloud Bot
fd58b559cf
chore(main): release 3.1.0 (#460)
🤖 I have created a release *beep* *boop*
---


##
[3.1.0](https://github.com/ansible-collections/hetzner.hcloud/compare/3.0.0...3.1.0)
(2024-04-15)


### Features

* assign primary ip to a server on create
([#465](https://github.com/ansible-collections/hetzner.hcloud/issues/465))
([51afb23](51afb23166))
* rename server `image_allow_deprecated` option
([#487](https://github.com/ansible-collections/hetzner.hcloud/issues/487))
([d88ecdb](d88ecdbccc))
* use resources name or ID in server module arguments
([#484](https://github.com/ansible-collections/hetzner.hcloud/issues/484))
([7fdefcf](7fdefcfa02))


### Bug Fixes

* improve actions waiting timeout based on data
([#488](https://github.com/ansible-collections/hetzner.hcloud/issues/488))
([0709552](07095529a4))
* return sorted `alias_ips` in `server_network` module
([#458](https://github.com/ansible-collections/hetzner.hcloud/issues/458))
([1ae6769](1ae6769210))
* use empty string to remove server from its placement group
([#489](https://github.com/ansible-collections/hetzner.hcloud/issues/489))
([00a4fdd](00a4fdd58a))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-04-15 12:26:31 +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
renovate[bot]
04835d543f deps: update pre-commit hook psf/black-pre-commit-mirror to v24.4.0 2024-04-13 09:26:09 +00:00
renovate[bot]
a2138b7f47 deps: update pre-commit hook ansible/ansible-lint to v24.2.2 2024-04-09 21:40:23 +00:00
renovate[bot]
41d4269bca deps: update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0 2024-04-06 22:54:58 +00:00
Jonas L
00a4fdd58a
fix: use empty string to remove server from its placement group (#489)
##### SUMMARY
- Do not remove the server from its placement group when the
`placement_group` argument is not specified.
- Pass an empty string to the `placement_group` argument to remove a
server from its placement group.
2024-04-04 16:53:32 +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
8738f369d3
test: check for api error code when possible (#486)
##### SUMMARY

Ensure the error code is correct and replace the error message check in
some cases.
2024-04-04 11:55:45 +02:00
Jonas L
7776905321
test: force firewall cleanup before running server cleanup (#485)
##### SUMMARY

Cleanup the firewall before the server to prevent a server deletion
timeout.
2024-04-04 11:54:54 +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
renovate[bot]
1d95b85e09
deps: update dependency hcloud to v1.35.0 (#483)
[![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.34.0` -> `1.35.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.34.0/1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.34.0/1.35.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>

###
[`v1.35.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1350-2024-04-02)

[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.34.0...v1.35.0)

##### Features

- add `include_deprecated` option when fetching images by name
([#&#8203;375](https://togithub.com/hetznercloud/hcloud-python/issues/375))
([6d86f86](6d86f86677))

##### Bug Fixes

- raise warnings for the `ImagesClient.get_by_name` deprecation
([#&#8203;376](https://togithub.com/hetznercloud/hcloud-python/issues/376))
([b24de80](b24de80684))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-04-02 19:21:29 +02:00
Jonas L
cfdaa0fb82
test: disable fact gathering in integration tests (#482)
##### SUMMARY
This should speed up a little our integrations tests by not gather facts
before each test run.

Docs
https://docs.ansible.com/ansible/latest/dev_guide/testing/sanity/integration-aliases.html
2024-04-02 19:21:17 +02:00
renovate[bot]
ac80d2ba7c
deps: update dependency hcloud to v1.34.0 (#480)
[![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.33.3` -> `1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.33.3/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.33.3/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>

###
[`v1.34.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1340-2024-03-27)

[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.33.3...v1.34.0)

##### Features

- add `has_id_or_name` to `DomainIdentityMixin`
([#&#8203;373](https://togithub.com/hetznercloud/hcloud-python/issues/373))
([8facaf6](8facaf6d4d))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-03-27 17:17:35 +01:00
Jonas L
0d7164a9f6
chore: disable out of scope pylint rules (#478)
##### SUMMARY

Disable some pylint rules that are out of scope for the time being, to
stop polluting the pylint errors report. Those might be re-enabled at a
later stage.
2024-03-27 15:49:19 +01: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
renovate[bot]
64f7824cc8
deps: update dependency hcloud to v1.33.3 (#479)
[![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.33.2` -> `1.33.3` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.33.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.33.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.33.2/1.33.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.33.2/1.33.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>

###
[`v1.33.3`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1333-2024-03-27)

[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.33.2...v1.33.3)

##### Bug Fixes

- invalid type for load balancer private network property
([#&#8203;372](https://togithub.com/hetznercloud/hcloud-python/issues/372))
([903e92f](903e92faab))

##### Dependencies

- update codecov/codecov-action action to v4
([#&#8203;359](https://togithub.com/hetznercloud/hcloud-python/issues/359))
([a798979](a79897977a))
- update dependency mypy to >=1.9,<1.10
([#&#8203;368](https://togithub.com/hetznercloud/hcloud-python/issues/368))
([4b9328c](4b9328ceae))
- update dependency pylint to >=3,<3.2
([#&#8203;364](https://togithub.com/hetznercloud/hcloud-python/issues/364))
([d71d17f](d71d17fd6f))
- update dependency pytest to >=8,<8.2
([#&#8203;366](https://togithub.com/hetznercloud/hcloud-python/issues/366))
([8665dcf](8665dcff33))
- update dependency pytest to v8
([#&#8203;357](https://togithub.com/hetznercloud/hcloud-python/issues/357))
([f8f756f](f8f756fe0a))
- update dependency pytest-cov to v5
([#&#8203;371](https://togithub.com/hetznercloud/hcloud-python/issues/371))
([04a6a42](04a6a42028))
- update dependency watchdog to v4
([#&#8203;360](https://togithub.com/hetznercloud/hcloud-python/issues/360))
([cb8d383](cb8d38396a))
- update pre-commit hook asottile/pyupgrade to v3.15.1
([#&#8203;362](https://togithub.com/hetznercloud/hcloud-python/issues/362))
([dd2a521](dd2a521ecc))
- update pre-commit hook asottile/pyupgrade to v3.15.2
([3d02ad7](3d02ad71e9))
- update pre-commit hook psf/black-pre-commit-mirror to v24
([#&#8203;356](https://togithub.com/hetznercloud/hcloud-python/issues/356))
([b46397d](b46397d761))
- update pre-commit hook psf/black-pre-commit-mirror to v24.1.1
([#&#8203;358](https://togithub.com/hetznercloud/hcloud-python/issues/358))
([7e4645e](7e4645e3e3))
- update pre-commit hook psf/black-pre-commit-mirror to v24.2.0
([#&#8203;361](https://togithub.com/hetznercloud/hcloud-python/issues/361))
([5b56ace](5b56ace93b))
- update pre-commit hook psf/black-pre-commit-mirror to v24.3.0
([3bbac5d](3bbac5dc41))
- update pre-commit hook pycqa/flake8 to v7
([#&#8203;354](https://togithub.com/hetznercloud/hcloud-python/issues/354))
([66a582f](66a582f3ce))
- update pypa/gh-action-pypi-publish action to v1.8.12
([#&#8203;365](https://togithub.com/hetznercloud/hcloud-python/issues/365))
([55db255](55db2551dd))
- update pypa/gh-action-pypi-publish action to v1.8.14
([#&#8203;367](https://togithub.com/hetznercloud/hcloud-python/issues/367))
([0cb615f](0cb615fe0d))

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-03-27 10:45:30 +01:00
renovate[bot]
af093e6ce1 deps: update pre-commit hook asottile/pyupgrade to v3.15.2 2024-03-24 22:50:54 +00:00
renovate[bot]
5ccd8a340c
deps: update dependency antsibull-docs to >=2.9,<2.10 (#474)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[antsibull-docs](https://togithub.com/ansible-community/antsibull-docs)
([changelog](https://togithub.com/ansible-community/antsibull-docs/tree/main/CHANGELOG.md))
| `>=2.8,<2.9` -> `>=2.9,<2.10` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/antsibull-docs/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/antsibull-docs/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/antsibull-docs/2.8.0/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/antsibull-docs/2.8.0/2.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ansible-community/antsibull-docs (antsibull-docs)</summary>

###
[`v2.9.0`](https://togithub.com/ansible-community/antsibull-docs/releases/tag/2.9.0)

[Compare
Source](https://togithub.com/ansible-community/antsibull-docs/compare/2.8.0...2.9.0)

##### Release Summary

Maintenance release.

##### Minor Changes

- Add support for the antsibull-core v3
([#&#8203;261](https://togithub.com/ansible-community/antsibull-docs/pull/261)).

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNDUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI0NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-18 10:02:31 +01:00
renovate[bot]
874b321701 deps: update pre-commit hook ansible-community/antsibull-changelog to v0.26.0 2024-03-17 16:46:13 +00:00
renovate[bot]
0f2b9219df deps: update pre-commit hook psf/black-pre-commit-mirror to v24.3.0 2024-03-16 10:24:08 +00:00
renovate[bot]
66c6832ff5 deps: update pre-commit hook ansible/ansible-lint to v24.2.1 2024-03-13 19:00:54 +01:00
renovate[bot]
08635ec6f4
deps: update dependency antsibull-docs to >=2.8,<2.9 (#471)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[antsibull-docs](https://togithub.com/ansible-community/antsibull-docs)
([changelog](https://togithub.com/ansible-community/antsibull-docs/tree/main/CHANGELOG.md))
| `>=2.7,<2.8` -> `>=2.8,<2.9` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/antsibull-docs/2.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/antsibull-docs/2.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/antsibull-docs/2.7.0/2.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/antsibull-docs/2.7.0/2.8.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ansible-community/antsibull-docs (antsibull-docs)</summary>

###
[`v2.8.0`](https://togithub.com/ansible-community/antsibull-docs/releases/tag/2.8.0)

[Compare
Source](https://togithub.com/ansible-community/antsibull-docs/compare/2.7.0...2.8.0)

##### Release Summary

Bugfix and feature release.

##### Minor Changes

- Add support for "dark mode" to the option table styling
([#&#8203;253](https://togithub.com/ansible-community/antsibull-docs/pull/253),
[#&#8203;258](https://togithub.com/ansible-community/antsibull-docs/pull/258)).
- Add support for the latest antsibull-core v3 pre-release,
<code>3.0.0a1</code>
([#&#8203;250](https://togithub.com/ansible-community/antsibull-docs/pull/250)).
- Declare support for Python 3.12
([#&#8203;255](https://togithub.com/ansible-community/antsibull-docs/pull/255)).
- The colors used by the CSS provided by the Antsibull Sphinx extension
can now be overridden
([#&#8203;254](https://togithub.com/ansible-community/antsibull-docs/pull/254)).

##### Bugfixes

- Fix duplicate docs detection (for aliases) for latest ansible-core
devel
([#&#8203;257](https://togithub.com/ansible-community/antsibull-docs/pull/257)).

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzguMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzOC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 22:17:41 +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
e781f48f15
chore: add fail_on_invalid_params helper (#470)
##### SUMMARY

Add a small helper to validate parameters while executing the module.

---------

Co-authored-by: Justin Jeffery <justin.jeffery@ipfabric.io>
2024-03-11 18:03:26 +01:00
Jonas L
46717e2d65
test: improve primary_ip integration using the testing framework (#468)
##### SUMMARY
Use the new testing framework for the primary ip integration tests.
2024-02-29 12:29:18 +01:00
renovate[bot]
694a238a38
deps: update pre-commit hook ansible-community/antsibull-changelog to v0.25.0 (#462)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[ansible-community/antsibull-changelog](https://togithub.com/ansible-community/antsibull-changelog)
| repository | minor | `0.23.0` -> `0.25.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-community/antsibull-changelog
(ansible-community/antsibull-changelog)</summary>

###
[`v0.25.0`](https://togithub.com/ansible-community/antsibull-changelog/releases/tag/0.25.0)

[Compare
Source](https://togithub.com/ansible-community/antsibull-changelog/compare/0.24.0...0.25.0)

<a id="release-summary"></a>

##### Release Summary

Bugfix and feature release.

<a id="minor-changes"></a>

##### Minor Changes

- Add <code>--version</code> flag to print package version and exit
([#&#8203;147](https://togithub.com/ansible-community/antsibull-changelog/pull/147)).

<a id="bugfixes"></a>

##### Bugfixes

- When multiple output formats are defined and <code>antsibull-changelog
generate</code> is used with both <code>--output</code> and
<code>--output-format</code>, an error was displayed that
<code>--output-format</code> must be specified
([#&#8203;149](https://togithub.com/ansible-community/antsibull-changelog/issues/149),
[#&#8203;151](https://togithub.com/ansible-community/antsibull-changelog/pull/151)).

###
[`v0.24.0`](https://togithub.com/ansible-community/antsibull-changelog/releases/tag/0.24.0)

[Compare
Source](https://togithub.com/ansible-community/antsibull-changelog/compare/0.23.0...0.24.0)

##### Release Summary

Feature release which now allows to output MarkDown.

##### Minor Changes

- Allow automatically retrieving package version for hatch projects with
the <code>hatch version</code> command
([#&#8203;141](https://togithub.com/ansible-community/antsibull-changelog/pull/141)).
- Allow to render changelogs as MarkDown. The output formats written can
be controlled with the <code>output_formats</code> option in the config
file
([#&#8203;139](https://togithub.com/ansible-community/antsibull-changelog/pull/139)).
- Officially support Python 3.12
([#&#8203;134](https://togithub.com/ansible-community/antsibull-changelog/pull/134)).

##### Deprecated Features

- Some code in <code>antsibull_changelog.changelog_entry</code> has been
deprecated, and the <code>antsibull_changelog.rst</code> module has been
deprecated completely. If you use them in your own code, please take a
look at the [PR deprecating
them](https://togithub.com/ansible-community/antsibull-changelog/pull/139)
for information on how to stop using them
([#&#8203;139](https://togithub.com/ansible-community/antsibull-changelog/pull/139)).

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 15:32:05 +01:00
renovate[bot]
bbfeae759c
deps: update pre-commit hook psf/black-pre-commit-mirror to v24.2.0 (#463)
[![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 | minor | `24.1.1` -> `24.2.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.2.0`](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.1...24.2.0)

[Compare
Source](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.1...24.2.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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 15:31:24 +01:00
renovate[bot]
b75293fa46
deps: update pre-commit hook asottile/pyupgrade to v3.15.1 (#466)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [asottile/pyupgrade](https://togithub.com/asottile/pyupgrade) |
repository | patch | `v3.15.0` -> `v3.15.1` |

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>asottile/pyupgrade (asottile/pyupgrade)</summary>

###
[`v3.15.1`](https://togithub.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1)

[Compare
Source](https://togithub.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1)

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOTEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE5MS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-19 15:18:05 +01:00
Jonas L
b0cb1a665b
test: do not start server where possible (#461)
##### SUMMARY

Reduce test time by not starting servers when not required.
2024-02-08 17:37:47 +01:00