Commit graph

394 commits

Author SHA1 Message Date
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
renovate[bot]
703217b36f
deps: update pre-commit hook ansible/ansible-lint to v24 (#459)
[![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 | major | `v6.22.2` -> `v24.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>ansible/ansible-lint (ansible/ansible-lint)</summary>

###
[`v24.2.0`](https://togithub.com/ansible/ansible-lint/releases/tag/v24.2.0)

[Compare
Source](https://togithub.com/ansible/ansible-lint/compare/v24...v24.2.0)

#### Minor Changes

- Drop support for Python 3.9
([#&#8203;4009](https://togithub.com/ansible/ansible-lint/issues/4009))
[@&#8203;audgirka](https://togithub.com/audgirka)

#### Bugfixes

- Fix scenario when role has no `dependencies` section in
`meta/main.yml`
([#&#8203;3993](https://togithub.com/ansible/ansible-lint/issues/3993))
[@&#8203;audgirka](https://togithub.com/audgirka)

### [`v24`](https://togithub.com/ansible/ansible-lint/compare/v6...v24)

[Compare
Source](https://togithub.com/ansible/ansible-lint/compare/v6.22.2...v24)

</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-07 11:53:09 +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
cf52215864
chore: add dev target helper (#457)
##### SUMMARY

Adds a helper to configure the dev env. For example reexporting a
hcloud_token and reload the integration tests configuration:
```bash
export HCLOUD_TOKEN="$(get-tmp-hcloud-token)"
make dev
```
2024-02-06 14:04:18 +01:00
Hetzner Cloud Bot
4db57dcf22
chore(main): release 3.0.0 (#451)
🤖 I have created a release *beep* *boop*
---


##
[3.0.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.5.0...3.0.0)
(2024-02-05)


### ⚠ BREAKING CHANGES

* drop support for ansible-core 2.13
([#450](https://github.com/ansible-collections/hetzner.hcloud/issues/450))
* always return iso-8601 formatted date time
([#453](https://github.com/ansible-collections/hetzner.hcloud/issues/453))
* remove inventory `api_token_env` option
([#454](https://github.com/ansible-collections/hetzner.hcloud/issues/454))

### Features

* drop support for ansible-core 2.13
([#450](https://github.com/ansible-collections/hetzner.hcloud/issues/450))
([96f8009](96f8009214)),
closes
[#400](https://github.com/ansible-collections/hetzner.hcloud/issues/400)
* **inventory:** allow templating instances hostname
([#455](https://github.com/ansible-collections/hetzner.hcloud/issues/455))
([be404ef](be404ef181))
* remove inventory `api_token_env` option
([#454](https://github.com/ansible-collections/hetzner.hcloud/issues/454))
([d0c82ae](d0c82aec86))


### Bug Fixes

* allow renaming networks
([#449](https://github.com/ansible-collections/hetzner.hcloud/issues/449))
([742cfe6](742cfe6d74))
* always return iso-8601 formatted date time
([#453](https://github.com/ansible-collections/hetzner.hcloud/issues/453))
([55d2616](55d26162b3))
* load balancer invalid cookie lifetime value returned
([#452](https://github.com/ansible-collections/hetzner.hcloud/issues/452))
([86b7662](86b76620da))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-05 16:19:20 +01:00
Jonas L
5358110ed3
test: use longer role namespace to prevent collision (#456)
##### SUMMARY

Use bigger roles namespace, by using the first 2 chars of each word:
`load_balancer_network` => `lobane`

For example, we have such cases:
- `rdns` => `r` => `rd`
- `route` => `r` => `ro`
2024-02-05 15:41:58 +01:00
Jonas L
be404ef181
feat(inventory): allow templating instances hostname (#455)
##### SUMMARY

Adds a `hostname` option that allow the user to pass a template to add a
prefix or use the hostvars to build the hostname.

For example:
```yml
plugin: hetzner.hcloud.hcloud

hostname: "hcloud-{{ location }}-{{ name }}"
```

OR with a hostvars_prefix:
```yml
plugin: hetzner.hcloud.hcloud

hostvars_prefix: hcloud_
hostname: "hcloud-{{ hcloud_location }}-{{ hcloud_name }}"
```

Fixes #115

##### ISSUE TYPE

- Feature Pull Request

##### COMPONENT NAME

inventory
2024-02-05 14:32:01 +01:00
Jonas L
96f8009214
feat!: drop support for ansible-core 2.13 (#450)
##### SUMMARY

ansible-core 2.13 is EOL since 6 November 2023.

Fixes #400


https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
2024-02-05 14:26:04 +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
d0c82aec86
feat!: remove inventory api_token_env option (#454)
##### SUMMARY

Remove the previously deprecated `api_token_env` to fully leverage the
ansible inventory options loader.

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

inventory
2024-02-05 12:18:39 +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
866e0b564e
test: use testing framework for network integration tests (#448)
##### SUMMARY

Implement the new test framework for the network tests, and reenable the
network tests
2024-02-02 13:42:18 +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
Hetzner Cloud Bot
3d689aa992
chore(main): release 2.5.0 (#419)
🤖 I have created a release *beep* *boop*
---


##
[2.5.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.4.1...2.5.0)
(2024-02-02)


### Features

* add `hostvars_prefix` and `hostvars_suffix` options to inventory
hostvars
([#423](https://github.com/ansible-collections/hetzner.hcloud/issues/423))
([4e3f89a](4e3f89aed3))
* allow forcing the deletion of firewalls that are still in use
([#447](https://github.com/ansible-collections/hetzner.hcloud/issues/447))
([559d315](559d31561a))
* improve firewall resources management
([#324](https://github.com/ansible-collections/hetzner.hcloud/issues/324))
([2757fe7](2757fe745f))
* replace `ansible.netcommon` utils with python3 `ipaddress` module
([#416](https://github.com/ansible-collections/hetzner.hcloud/issues/416))
([4cfdf50](4cfdf50b26))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-02-02 10:45:50 +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]
2ebaa3528f
deps: update dependency antsibull-docs to >=2.7,<2.8 (#446)
[![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)
| `>=2.6,<2.7` -> `>=2.7,<2.8` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/antsibull-docs/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/antsibull-docs/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/antsibull-docs/2.6.1/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/antsibull-docs/2.6.1/2.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v2.7.0`](https://togithub.com/ansible-community/antsibull-docs/blob/HEAD/CHANGELOG.rst#v270)

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

\======

## Release Summary

Bugfix and refactoring release.

## Minor Changes

- Explicitly set up Galaxy context instead of relying on deprecated
functionality
([https://github.com/ansible-community/antsibull-docs/pull/234](https://togithub.com/ansible-community/antsibull-docs/pull/234)).

## Bugfixes

- Fix schema for `seealso` in role entrypoints. Plugin references now
work
([https://github.com/ansible-community/antsibull-docs/issues/237](https://togithub.com/ansible-community/antsibull-docs/issues/237),
[https://github.com/ansible-community/antsibull-docs/pull/240](https://togithub.com/ansible-community/antsibull-docs/pull/240)).
- Make error reporting for invalid references in `plugin` `seealso`
entries more precise
([https://github.com/ansible-community/antsibull-docs/pull/240](https://togithub.com/ansible-community/antsibull-docs/pull/240)).
- Support new `ansible-doc --json` output field `plugin_name`
([https://github.com/ansible-community/antsibull-docs/pull/242](https://togithub.com/ansible-community/antsibull-docs/pull/242)).
- Use certain fields from library context instead of app context that
are deprecated in the app context and will be removed from
antsibull-core 3.0.0
([https://github.com/ansible-community/antsibull-docs/pull/233](https://togithub.com/ansible-community/antsibull-docs/pull/233)).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-01 16:30:26 +01:00
renovate[bot]
277fd1cd16
deps: update pre-commit hook ansible/ansible-lint to v6.22.2 (#441)
[![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 | patch | `v6.22.1` -> `v6.22.2` |

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.22.2`](https://togithub.com/ansible/ansible-lint/releases/tag/v6.22.2)

[Compare
Source](https://togithub.com/ansible/ansible-lint/compare/v6.22.1...v6.22.2)

#### Bugfixes

- Fix key error for name\[casing] rule
([#&#8203;3987](https://togithub.com/ansible/ansible-lint/issues/3987))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Allow dashes in legacy role namespaces
([#&#8203;3962](https://togithub.com/ansible/ansible-lint/issues/3962))
[@&#8203;sur5r](https://togithub.com/sur5r)
- Use new ansible-compat verbosity levels
([#&#8203;3975](https://togithub.com/ansible/ansible-lint/issues/3975))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- Remove dependency on newer requests library
([#&#8203;3959](https://togithub.com/ansible/ansible-lint/issues/3959))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- Ignore set-property for systemd command
([#&#8203;3949](https://togithub.com/ansible/ansible-lint/issues/3949))
[@&#8203;alanbbr](https://togithub.com/alanbbr)
- Correct requires_ansible error message
([#&#8203;3954](https://togithub.com/ansible/ansible-lint/issues/3954))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- Improve transformation for `no-free-form` rule
([#&#8203;3945](https://togithub.com/ansible/ansible-lint/issues/3945))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Documentation improvement
([#&#8203;3946](https://togithub.com/ansible/ansible-lint/issues/3946))
[@&#8203;ssbarnea](https://togithub.com/ssbarnea)
- docs: fix grammatical issue in philosophy Q\&A section
([#&#8203;3934](https://togithub.com/ansible/ansible-lint/issues/3934))
[@&#8203;davidhulick](https://togithub.com/davidhulick)
- Update supported versions of ansible
([#&#8203;3930](https://togithub.com/ansible/ansible-lint/issues/3930))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Fix backward compatibility
([#&#8203;3929](https://togithub.com/ansible/ansible-lint/issues/3929))
[@&#8203;McSim85](https://togithub.com/McSim85)
- Fix auto capitalization for name\[prefix] rule
([#&#8203;3922](https://togithub.com/ansible/ansible-lint/issues/3922))
[@&#8203;ajinkyau](https://togithub.com/ajinkyau)
- Fix role deps check for detecting path names
([#&#8203;3923](https://togithub.com/ansible/ansible-lint/issues/3923))
[@&#8203;cavcrosby](https://togithub.com/cavcrosby)
- Avoid warnings about PATH with pipx installations
([#&#8203;3920](https://togithub.com/ansible/ansible-lint/issues/3920))
[@&#8203;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:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEzNS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-01-29 20:04:20 +01:00
renovate[bot]
33c8c79a2d
deps: update pre-commit hook psf/black-pre-commit-mirror to v24.1.1 (#444)
[![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.1.0` -> `24.1.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.1.1`](https://togithub.com/psf/black-pre-commit-mirror/compare/24.1.0...24.1.1)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 19:50:18 +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
renovate[bot]
ec80865b7f
deps: update dependency hcloud to v1.33.2 (#439)
[![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.0` -> `1.33.2` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.33.0/1.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.33.0/1.33.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.33.2`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1332-2024-01-02)

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

##### Bug Fixes

- publish package to PyPI using OIDC auth
([1a0e93b](1a0e93bbf1))

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2024-01-03 12:00:33 +01:00
renovate[bot]
a10c1f615d
deps: update pre-commit hook psf/black-pre-commit-mirror to v23.12.1 (#437)
[![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 | `23.12.0` -> `23.12.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>

###
[`v23.12.1`](https://togithub.com/psf/black-pre-commit-mirror/compare/23.12.0...23.12.1)

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-02 11:01:14 +01:00
Jonas L
d08708e550
ci: use latest python version for ansible devel jobs (#436)
##### SUMMARY

For each job, we use the oldest python version supported for the given
ansible-core version. Now, for the ansible-core devel version, we use
the most recent version of python supported.

This ensure that we are compatible with all python version.
2023-12-21 18:28:32 +01:00
Jonas L
9495b9f25a
docs: improve hcloud inventory documentation (#434)
##### SUMMARY

- Re add some examples that were removed during a dep upgrade.
- Improve link to other reference (plugins/modules/options)
- Remove duplicate docs.
2023-12-21 17:49:24 +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
c41ed8bd60
chore: enable docs rstcheck (#432)
This should catch more RST errors.
2023-12-21 17:44:59 +01:00
Jonas L
4cbf9a2838
refactor: add no return typings (#433)
Fixes type checking (false unbound variables), for the fail json helper
function that never returns (system exit).
2023-12-21 17:44:42 +01:00
renovate[bot]
b7beb0971f
deps: update dependency hcloud to v1.33.0 (#430)
[![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.32.0` -> `1.33.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.32.0/1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.32.0/1.33.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.33.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1330-2023-12-19)

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

##### Features

- add metrics endpoint for load balancers and servers
([#&#8203;331](https://togithub.com/hetznercloud/hcloud-python/issues/331))
([ee3c54f](ee3c54fd1b))

##### Bug Fixes

- fallback to error code when message is unset
([#&#8203;328](https://togithub.com/hetznercloud/hcloud-python/issues/328))
([1c94153](1c94153d93))

##### Dependencies

- update actions/setup-python action to v5
([#&#8203;335](https://togithub.com/hetznercloud/hcloud-python/issues/335))
([2ac252d](2ac252d18b))
- update dependency sphinx-rtd-theme to v2
([#&#8203;330](https://togithub.com/hetznercloud/hcloud-python/issues/330))
([7cc4335](7cc4335cac))
- update pre-commit hook psf/black-pre-commit-mirror to v23.12.0
([#&#8203;338](https://togithub.com/hetznercloud/hcloud-python/issues/338))
([38e4748](38e4748d3d))
- update pre-commit hook pycqa/isort to v5.13.0
([#&#8203;336](https://togithub.com/hetznercloud/hcloud-python/issues/336))
([3244cfe](3244cfef2f))
- update pre-commit hook pycqa/isort to v5.13.1
([#&#8203;337](https://togithub.com/hetznercloud/hcloud-python/issues/337))
([020a0ef](020a0eff6b))
- update pre-commit hook pycqa/isort to v5.13.2
([#&#8203;339](https://togithub.com/hetznercloud/hcloud-python/issues/339))
([b46df8c](b46df8cbb2))

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-12-19 19:05:57 +01:00
Jonas L
1e6e3a04e3
ci: update release-please-action to v4 (#429) 2023-12-19 16:13:41 +01:00
Jonas L
4e3f89aed3
feat: add hostvars_prefix and hostvars_suffix options to inventory hostvars (#423)
##### SUMMARY

Add `hostvars_prefix` and `hostvars_suffix` options to customize the
inventory host variables keys.

For example, with `hostvars_prefix: hcloud_ `, the host vars will be
stored as follows:
```json
{
    "_meta": {
        "hostvars": {
            "tmp": {
                "ansible_host": "65.109.169.27",
                "hcloud_architecture": "x86",
                "hcloud_datacenter": "hel1-dc2",
                "hcloud_id": 40573407,
                "hcloud_image_id": 114690387,
                "hcloud_image_name": "debian-12",
                "hcloud_image_os_flavor": "debian",
                "hcloud_ipv4": "65.109.169.27",
                "hcloud_ipv6_network_mask": "64",
                "hcloud_ipv6_network": "2a01:4f9:c012:4377::",
                "hcloud_ipv6": "2a01:4f9:c012:4377::1",
                "hcloud_labels": {},
                "hcloud_location": "hel1",
                "hcloud_name": "tmp",
                "hcloud_private_networks": [],
                "hcloud_server_type": "cx11",
                "hcloud_status": "running",
                "hcloud_type": "cx11"
            }
        }
    }
}
``` 

Related to #116
2023-12-15 15:40:37 +01:00
Jonas L
3910785025
test: use testing framework for firewall integration tests (#425)
##### SUMMARY

Use the new testing framework for the firewall integration tests and fix
linting errors.
2023-12-15 15:25:35 +01:00
Jonas L
86e476f961
test: fix linting error for integrations setup roles (#426)
##### SUMMARY

Fix ansible lint error for the integrations setup roles.
2023-12-15 15:25:20 +01:00
Jonas L
e4501c1086
refactor: reorder inventory server type host vars (#427)
Outlines the fact that `type` and `server_type` are the same value.
2023-12-15 15:25:12 +01:00
Jonas L
fe4c924594
test: remove jinja templates where unnecessary (#420)
Attempt to fix the unsafe condition by removing unnecessary jinja
templates.

Example of failing CI:
https://dev.azure.com/ansible/hetzner.hcloud/_build/results?buildId=98486&view=logs&j=86ea7956-35b6-5577-ed45-fe20f8c6b276&t=a2e51dbe-b8d9-5c65-a584-138300c332b7&l=2562
2023-12-14 18:17:53 +01:00
Jonas L
8f6cde7402
docs: restructure guides documentation (#422)
##### SUMMARY

Improve the documentation to have `Guides` at sections, and each part in
the guides files as list item.


![image](https://github.com/ansible-collections/hetzner.hcloud/assets/19195485/ca563056-fbf4-4796-8706-b13faf65f10e)



https://docs.ansible.com/ansible/latest/dev_guide/style_guide/index.html#adding-anchors
2023-12-14 18:17:22 +01:00