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
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
4cfdf50b26
feat: replace ansible.netcommon
utils with python3 ipaddress
module ( #416 )
...
##### SUMMARY
Replace `ansible.netcommon` deprecated ipaddr utils with python
`ipaddress` module. The `ansible.netcommon` collection is no longer
required by the collections. We still use the `ansible.utils`
collections for testing
2023-12-12 11:50:45 +01:00
Hetzner Cloud Bot
359539fdd6
chore(main): release 2.4.1 ( #405 )
...
🤖 I have created a release *beep* *boop*
---
##
[2.4.1](https://github.com/ansible-collections/hetzner.hcloud/compare/2.4.0...2.4.1 )
(2023-11-27)
### Bug Fixes
* **inventory:** always use fresh cache on new cached session
([#404 ](https://github.com/ansible-collections/hetzner.hcloud/issues/404 ))
([df7fa04
](df7fa04149
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
2023-11-27 10:51:12 +01:00
Jonas L
df7fa04149
fix(inventory): always use fresh cache on new cached session ( #404 )
...
##### SUMMARY
The class scoped `cache` dict was being shared across all
`cached_session`, we now make sure that the cache is instance scoped.
Fixes #403
##### ISSUE TYPE
- Bugfix Pull Request
2023-11-24 20:50:43 +01:00
Hetzner Cloud Bot
04f63d0679
chore(main): release 2.4.0 ( #392 )
...
🤖 I have created a release *beep* *boop*
---
##
[2.4.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.3.0...2.4.0 )
(2023-11-24)
### Features
* add `hetzner.hcloud.all` action group
([#396 ](https://github.com/ansible-collections/hetzner.hcloud/issues/396 ))
([6581ed5
](6581ed50db
))
* **inventory:** improve api options
([#397 ](https://github.com/ansible-collections/hetzner.hcloud/issues/397 ))
([9905bd0
](9905bd0e01
))
* remove `hcloud_` prefix from all modules names
([#390 ](https://github.com/ansible-collections/hetzner.hcloud/issues/390 ))
([933a162
](933a16249b
))
* rename api_endpoint module argument
([#395 ](https://github.com/ansible-collections/hetzner.hcloud/issues/395 ))
([7c9fbf8
](7c9fbf85a7
))
### Bug Fixes
* **inventory:** improve performance
([#402 ](https://github.com/ansible-collections/hetzner.hcloud/issues/402 ))
([f85d8f4
](f85d8f4492
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
2023-11-24 14:23:24 +01:00
Jonas L
f85d8f4492
fix(inventory): improve performance ( #402 )
...
##### SUMMARY
Improve the performance of the inventory plugin by:
- Cache client requests
- Move servers `status` filtering to query params.
2023-11-24 13:43:34 +01:00
Jonas L
fb40a00689
refactor: extract client utils in reusable functions ( #399 )
...
##### SUMMARY
Extract some client utils functions in reusable function, to be used in
the inventory plugin.
2023-11-24 12:14:04 +01:00
Jonas L
df8c3b6a59
refactor: add future annotations imports ( #398 )
...
##### SUMMARY
This adds future annotations imports to benefit from the modern python
typing system.
2023-11-23 14:53:10 +01:00
Jonas L
9905bd0e01
feat(inventory): improve api options ( #397 )
...
##### SUMMARY
- Rename the inventory `token` option to `api_token`, use aliases for
backward compatibility.
- Rename the inventory `token_env` option to `api_token_env`, use
aliases for backward compatibility.
- Deprecate the inventory `api_token_env` option, suggest using a lookup
plugin (`{{ lookup('ansible.builtin.env', 'YOUR_ENV_VAR') }}`) or use
the well-known `HCLOUD_TOKEN` environment variable name.
- Let ansible parse the options, remove homemade options parsing.
- Improve and document the existing `api_endpoint` option.
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud inventory
2023-11-23 14:29:27 +01:00
Jonas L
7c9fbf85a7
feat: rename api_endpoint module argument ( #395 )
...
##### SUMMARY
Make the api endpoint module argument consistent with the api token.
- Renamed the `endpoint` module argument to `api_endpoint`, backward
compatibility is maintained using an alias.
- Allow to configure it using the `HCLOUD_ENDPOINT` env var.
This makes the inventory config and the modules config a bit more
consistent.
##### ISSUE TYPE
- Feature Pull Request
2023-11-21 10:13:21 +01:00
Jonas L
328dfb8b0f
refactor: start using new modules names ( #393 )
...
##### SUMMARY
Update all references to modules to use the new module names.
Continuation of #390
2023-11-21 09:40:11 +01:00
Jonas L
933a16249b
feat: remove hcloud_
prefix from all modules names ( #390 )
...
##### SUMMARY
This simplifies the name of the modules from
`hetzner.hcloud.hcloud_firewall` to `hetzner.hcloud.firewall`. While
maintaining backward compatibility with the old names.
Further changes such as updating the test or the documentation will be
done in a future PR to maintain the git history when squashing the PRs.
##### ISSUE TYPE
- Feature Pull Request
2023-11-20 13:21:23 +01:00
Simon Haas
ff43534143
docs: fix typo ( #391 )
2023-11-20 12:39:08 +01:00
renovate[bot]
8c846f3b68
deps: update dependency hcloud to v1.32.0 ( #389 )
...
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [hcloud](https://togithub.com/hetznercloud/hcloud-python )
([changelog](https://togithub.com/hetznercloud/hcloud-python/blob/main/CHANGELOG.md ))
| `1.31.0` -> `1.32.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.31.0/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.31.0/1.32.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v1.32.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1320-2023-11-17 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.31.0...v1.32.0 )
##### Features
- allow returning root_password in servers rebuild
([#​276](https://togithub.com/hetznercloud/hcloud-python/issues/276 ))
([38e098a](38e098a411
))
##### Dependencies
- update dependency mypy to >=1.7,<1.8
([#​325](https://togithub.com/hetznercloud/hcloud-python/issues/325 ))
([7b59a2d](7b59a2decc
))
- update pre-commit hook pre-commit/mirrors-prettier to v3.1.0
([#​326](https://togithub.com/hetznercloud/hcloud-python/issues/326 ))
([213b661](213b661d89
))
- update pre-commit hook psf/black-pre-commit-mirror to v23.10.1
([#​322](https://togithub.com/hetznercloud/hcloud-python/issues/322 ))
([999afe3](999afe37e0
))
- update pre-commit hook psf/black-pre-commit-mirror to v23.11.0
([#​324](https://togithub.com/hetznercloud/hcloud-python/issues/324 ))
([7b2a24e](7b2a24ecf6
))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-11-20 09:25:57 +01:00
Jonas L
2e82e0e6ef
docs: remove hcloud-python requirements from modules ( #388 )
...
##### SUMMARY
Since we vendored the hcloud-python library, those requirements are not
needed anymore.
##### ISSUE TYPE
- Docs Pull Request
2023-11-17 15:12:52 +01:00
Hetzner Cloud Bot
0e00c9f43b
chore(main): release 2.3.0 ( #382 )
...
🤖 I have created a release *beep* *boop*
---
##
[2.3.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.2.0...2.3.0 )
(2023-11-07)
### Features
* add `created` field to server and server_info modules
([#381 ](https://github.com/ansible-collections/hetzner.hcloud/issues/381 ))
([c3e4c0e
](c3e4c0ea0a
))
* add server_types to datacenter info module
([#379 ](https://github.com/ansible-collections/hetzner.hcloud/issues/379 ))
([084e04d
](084e04d576
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-11-07 12:59:43 +01:00
urbanekpj
c3e4c0ea0a
feat: add created
field to server and server_info modules ( #381 )
...
##### SUMMARY
Add missing "created" field to ansible result
based on documentation
https://docs.hetzner.cloud/#servers-get-all-servers
```
created
string required
Point in time when the Resource was created (in ISO-8601 format)
```
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_server_info
hcloud_server
Co-authored-by: Pawel Urbanek <pawel.urbanek@medvc.eu>
2023-11-06 17:10:54 +01:00
Jonas L
084e04d576
feat: add server_types to datacenter info module ( #379 )
...
##### SUMMARY
Closes #204
Return the `server_types` dict when querying the datacenters.
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_datacenter_info
2023-11-06 15:23:20 +01:00
Jonas L
c491799f6f
docs: fix certificates module options and examples ( #377 )
...
##### SUMMARY
Closes #374
Closes #375
##### ISSUE TYPE
- Docs Pull Request
##### COMPONENT NAME
hcloud_certificates
2023-10-30 17:30:49 +01:00
Hetzner Cloud Bot
0c776c3fc8
chore(main): release 2.2.0 ( #360 )
...
🤖 I have created a release *beep* *boop*
---
##
[2.2.0](https://github.com/ansible-collections/hetzner.hcloud/compare/2.1.2...2.2.0 )
(2023-10-23)
### Features
* add deprecation field to hcloud_iso_info
([#357 ](https://github.com/ansible-collections/hetzner.hcloud/issues/357 ))
([76ef636
](76ef636f07
))
* add load_balancer algorithm option
([#368 ](https://github.com/ansible-collections/hetzner.hcloud/issues/368 ))
([a93dbaa
](a93dbaa428
))
* allow selecting a resource using its ID
([#361 ](https://github.com/ansible-collections/hetzner.hcloud/issues/361 ))
([5e425c5
](5e425c56c2
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-23 16:26:55 +02:00
Jonas L
41ea82cc07
refactor: don't use ISO deprecated field ( #371 )
...
##### SUMMARY
The deprecated field is deprecated, we must use the deprecation object
instead.
##### COMPONENT NAME
hcloud_iso_info
2023-10-23 13:36:14 +02:00
renovate[bot]
f35f5009aa
deps: update dependency hcloud to v1.31.0 ( #370 )
...
[![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.30.0` -> `1.31.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.31.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.31.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.30.0/1.31.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.30.0/1.31.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v1.31.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1310-2023-10-23 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.30.0...v1.31.0 )
##### Features
- prepare for iso deprecated field removal
([#​320](https://togithub.com/hetznercloud/hcloud-python/issues/320 ))
([beae328](beae328dd6
))
##### Dependencies
- update pre-commit hook psf/black-pre-commit-mirror to v23.10.0
([#​319](https://togithub.com/hetznercloud/hcloud-python/issues/319 ))
([184bbe6](184bbe65a7
))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-10-23 11:12:06 +02:00
Jonas L
a93dbaa428
feat: add load_balancer algorithm option ( #368 )
...
##### SUMMARY
Allow to configure load balancers algorithm.
Closes #289
Depends on #367
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_load_balancer
2023-10-20 12:20:09 +02:00
renovate[bot]
3058995219
deps: update pre-commit hook ansible/ansible-lint to v6.21.0 ( #365 )
...
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg )](https://renovatebot.com )
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [ansible/ansible-lint](https://togithub.com/ansible/ansible-lint ) |
repository | minor | `v6.20.3` -> `v6.21.0` |
Note: The `pre-commit` manager in Renovate is not supported by the
`pre-commit` maintainers or community. Please do not report any problems
there, instead [create a Discussion in the Renovate
repository](https://togithub.com/renovatebot/renovate/discussions/new )
if you have any questions.
---
### Release Notes
<details>
<summary>ansible/ansible-lint (ansible/ansible-lint)</summary>
###
[`v6.21.0`](https://togithub.com/ansible/ansible-lint/releases/tag/v6.21.0 )
[Compare
Source](https://togithub.com/ansible/ansible-lint/compare/v6.20.3...v6.21.0 )
#### Minor Changes
- Allow linting plugin EXAMPLES as playbooks
([#​3309](https://togithub.com/ansible/ansible-lint/issues/3309 ))
[@​Qalthos](https://togithub.com/Qalthos )
#### Bugfixes
- Add support for Rocky
([#​3843](https://togithub.com/ansible/ansible-lint/issues/3843 ))
[@​facorazza](https://togithub.com/facorazza )
- Update supported Ubuntu versions in `meta.json`
([#​3845](https://togithub.com/ansible/ansible-lint/issues/3845 ))
[@​mcdonnnj](https://togithub.com/mcdonnnj )
- Avoid false positives for handler in roles handlers directory
([#​3838](https://togithub.com/ansible/ansible-lint/issues/3838 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Hide stacktrace when loading invalid yaml
([#​3844](https://togithub.com/ansible/ansible-lint/issues/3844 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Add some platforms to `meta.json`
([#​3841](https://togithub.com/ansible/ansible-lint/issues/3841 ))
[@​mcdonnnj](https://togithub.com/mcdonnnj )
- Temporary avoid auto-fixing YAML files not owned by ansible
([#​3837](https://togithub.com/ansible/ansible-lint/issues/3837 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Add environment variable for skipping schema update
([#​3835](https://togithub.com/ansible/ansible-lint/issues/3835 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Avoid creating temporary YAML files inside source tree
([#​3819](https://togithub.com/ansible/ansible-lint/issues/3819 ))
[@​Qalthos](https://togithub.com/Qalthos )
- Document environment variables
([#​3833](https://togithub.com/ansible/ansible-lint/issues/3833 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Update schemas
([#​3832](https://togithub.com/ansible/ansible-lint/issues/3832 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Support complex requirements in argument_specs.yml
([#​3823](https://togithub.com/ansible/ansible-lint/issues/3823 ))
[@​tapetersen](https://togithub.com/tapetersen )
- Fix SARIF-formatter severity levels
([#​3824](https://togithub.com/ansible/ansible-lint/issues/3824 ))
[@​4ch1m](https://togithub.com/4ch1m )
- Add play level autofix for key-order rule
([#​3815](https://togithub.com/ansible/ansible-lint/issues/3815 ))
[@​ajinkyau](https://togithub.com/ajinkyau )
- Add support for python 3.12
([#​3813](https://togithub.com/ansible/ansible-lint/issues/3813 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Update SPDX license list
([#​3814](https://togithub.com/ansible/ansible-lint/issues/3814 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
- Use checkout action in install docs
([#​3810](https://togithub.com/ansible/ansible-lint/issues/3810 ))
[@​gma](https://togithub.com/gma )
- Fix actions-tagger arguments
([#​3808](https://togithub.com/ansible/ansible-lint/issues/3808 ))
[@​ssbarnea](https://togithub.com/ssbarnea )
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/ ). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud ).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xOS4yIiwidXBkYXRlZEluVmVyIjoiMzcuMTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-10-19 12:41:44 +02:00
Jonas L
5e425c56c2
feat: allow selecting a resource using its ID ( #361 )
...
##### SUMMARY
Allow referring to resources using their IDs for:
- hcloud_load_balancer_network
- hcloud_load_balancer_service
- hcloud_load_balancer_target
- hcloud_rdns
- hcloud_route
- hcloud_server_network
- hcloud_subnetwork
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
- hcloud_load_balancer_network
- hcloud_load_balancer_service
- hcloud_load_balancer_target
- hcloud_rdns
- hcloud_route
- hcloud_server_network
- hcloud_subnetwork
2023-10-18 10:28:42 +02:00
Jonas L
76ef636f07
feat: add deprecation field to hcloud_iso_info ( #357 )
...
##### SUMMARY
See these changelog entries for the announcement:
-
https://docs.hetzner.cloud/changelog#2023-10-12-deprecation-info-for-isos
-
https://docs.hetzner.cloud/changelog#2023-10-12-field-deprecated-on-isos-is-now-deprecated
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
hcloud_iso_info
2023-10-16 11:16:31 +02:00
renovate[bot]
11ffbd9d43
deps: update dependency hcloud to v1.30.0 ( #358 )
...
[![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.29.1` -> `1.30.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.30.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.30.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.29.1/1.30.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.29.1/1.30.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### ⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the
Dependency Dashboard for more information.
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v1.30.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1300-2023-10-13 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.29.1...v1.30.0 )
##### Features
- add deprecation field to Iso
([#​318](https://togithub.com/hetznercloud/hcloud-python/issues/318 ))
([036b52f](036b52fe51
))
- support python 3.12
([#​311](https://togithub.com/hetznercloud/hcloud-python/issues/311 ))
([7e8cd1d](7e8cd1d92e
))
##### Dependencies
- update dependency mypy to >=1.6,<1.7
([#​317](https://togithub.com/hetznercloud/hcloud-python/issues/317 ))
([d248bbd](d248bbd4e5
))
- update dependency pylint to v3
([#​307](https://togithub.com/hetznercloud/hcloud-python/issues/307 ))
([277841d](277841dd84
))
- update pre-commit hook asottile/pyupgrade to v3.14.0
([#​308](https://togithub.com/hetznercloud/hcloud-python/issues/308 ))
([07a4513](07a4513e28
))
- update pre-commit hook asottile/pyupgrade to v3.15.0
([#​312](https://togithub.com/hetznercloud/hcloud-python/issues/312 ))
([c544639](c5446394ac
))
- update pre-commit hook pre-commit/pre-commit-hooks to v4.5.0
([#​313](https://togithub.com/hetznercloud/hcloud-python/issues/313 ))
([e51eaa9](e51eaa9903
))
- update python docker tag to v3.12
([#​309](https://togithub.com/hetznercloud/hcloud-python/issues/309 ))
([3a1ee67](3a1ee675f2
))
</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:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-10-13 16:26:39 +02:00
Hetzner Cloud Bot
e692b3e2e0
chore(main): release 2.1.2 ( #335 )
...
🤖 I have created a release *beep* *boop*
---
##
[2.1.2](https://github.com/ansible-collections/hetzner.hcloud/compare/2.1.1...v2.1.2 )
(2023-10-05)
### Bug Fixes
* firewall port argument is required with udp or tcp
([#345 ](https://github.com/ansible-collections/hetzner.hcloud/issues/345 ))
([76c1abf
](76c1abf447
))
* invalid field in load_balancer_service health_check.http return data
([#333 ](https://github.com/ansible-collections/hetzner.hcloud/issues/333 ))
([fb35516
](fb35516e76
))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please ). See
[documentation](https://github.com/googleapis/release-please#release-please ).
2023-10-05 16:40:02 +02:00
Jonas L
76c1abf447
fix: firewall port argument is required with udp or tcp ( #345 )
...
##### SUMMARY
When managing a tcp/udp firewall rule, provide a clear error message
when the port is missing from the rule.
Closes #344
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
hcloud_firewall
2023-10-04 10:59:50 +02:00
renovate[bot]
3dffaafcdc
deps: update dependency hcloud to v1.29.1 ( #339 )
...
[![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.29.0` -> `1.29.1` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.29.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.29.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.29.0/1.29.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.29.0/1.29.1?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v1.29.1`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1291-2023-09-26 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.29.0...v1.29.1 )
##### Bug Fixes
- prevent api calls when printing bound models
([#​305](https://togithub.com/hetznercloud/hcloud-python/issues/305 ))
([c1de7ef](c1de7efc85
))
</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:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDcuMiIsInVwZGF0ZWRJblZlciI6IjM2LjEwNy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-09-26 19:55:44 +02:00
Jonas L
94190ae6cb
refactor: move module vars out of __init__
( #336 )
...
##### SUMMARY
- move module vars out of `__init__`
- add modules type hints
- catch hcloud exception for api calls
2023-09-26 09:41:01 +02:00
renovate[bot]
4ae557c287
deps: update dependency hcloud to v1.29.0 ( #334 )
...
[![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.28.0` -> `1.29.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.29.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.29.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.28.0/1.29.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.28.0/1.29.0?slim=true )](https://docs.renovatebot.com/merge-confidence/ )
|
---
### Release Notes
<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>
###
[`v1.29.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1290-2023-09-25 )
[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.28.0...v1.29.0 )
##### Features
- add domain attribute type hints to bound models
([#​300](https://togithub.com/hetznercloud/hcloud-python/issues/300 ))
([6d46d06](6d46d06c42
))
- **firewalls:** add `applied_to_resources` to `FirewallResource`
([#​297](https://togithub.com/hetznercloud/hcloud-python/issues/297 ))
([55d2b20](55d2b2043e
))
##### Bug Fixes
- missing BaseDomain base class inheritance
([#​303](https://togithub.com/hetznercloud/hcloud-python/issues/303 ))
([0ee7598](0ee759856c
))
##### Dependencies
- update actions/checkout action to v4
([#​295](https://togithub.com/hetznercloud/hcloud-python/issues/295 ))
([c02b446](c02b4468f0
))
- update dependency sphinx to >=7.2.2,<7.3
([#​291](https://togithub.com/hetznercloud/hcloud-python/issues/291 ))
([10234ea](10234ea7bf
))
- update dependency sphinx to v7
([#​211](https://togithub.com/hetznercloud/hcloud-python/issues/211 ))
([f635c94](f635c94c23
))
- update pre-commit hook asottile/pyupgrade to v3.11.0
([#​298](https://togithub.com/hetznercloud/hcloud-python/issues/298 ))
([4bbd0cc](4bbd0ccb0f
))
- update pre-commit hook asottile/pyupgrade to v3.11.1
([#​299](https://togithub.com/hetznercloud/hcloud-python/issues/299 ))
([2f9fcd7](2f9fcd7bb8
))
- update pre-commit hook asottile/pyupgrade to v3.13.0
([#​301](https://togithub.com/hetznercloud/hcloud-python/issues/301 ))
([951dbf3](951dbf3e3b
))
- update pre-commit hook pre-commit/mirrors-prettier to v3.0.3
([#​294](https://togithub.com/hetznercloud/hcloud-python/issues/294 ))
([381e336](381e336ff1
))
- update pre-commit hook psf/black to v23.9.1
([#​296](https://togithub.com/hetznercloud/hcloud-python/issues/296 ))
([4374a7b](4374a7be9f
))
##### Documentation
- load token from env in examples scripts
([#​302](https://togithub.com/hetznercloud/hcloud-python/issues/302 ))
([f18c9a6](f18c9a60e0
))
</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:eyJjcmVhdGVkSW5WZXIiOiIzNi45Ny4xIiwidXBkYXRlZEluVmVyIjoiMzYuOTcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-09-25 13:34:49 +02:00
Jonas L
fb35516e76
fix: invalid field in load_balancer_service health_check.http return data ( #333 )
...
##### SUMMARY
In the `hcloud_load_balancer_service` return data, the
`health_check.http.certificates` field must be named
`health_check.http.status_codes`.
https://docs.hetzner.cloud/#load-balancers-get-a-load-balancer
Fixes #332
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
hcloud_load_balancer_service
2023-09-25 12:20:18 +02:00
Jonas L
e6328d770b
refactor: add plugins top level __init__
( #320 )
...
##### SUMMARY
This make python/pylint happy when using relative imports between
`modules` and `module_utils`.
2023-09-06 16:06:25 +02:00
Julian Tölle
eb4114bad3
ci: setup release-please ( #317 )
...
##### SUMMARY
The current release process for this project requires multiple manual
local steps to prepare and then tag the release. This introduces the
standard release-please workflow we have in most of our integrations.
Release-please will open a new PR whenever there is a releasable change
and it updates the CHANGELOG & other files automatically in this PR.
Once the PR is merged a new tag is created.
This repository has some additional complexity as it uses
`antsibull-changelog` to maintain the user-facing changelog. This is
implemented ina second job in the `release-please` workflow which
executes when the release-please PR is updated and then runs
`antsibull-changelog release` against the version. The resulting changes
are pushed as a second commit to the same PR.
2023-09-05 14:49:05 +02:00
Jonas L
aeda12275c
chore: add antsibull-docs lint-collection pre-commit hook ( #315 )
...
##### SUMMARY
This check will run a linter against the documentation. I was already
able to fix a few errors.
2023-08-31 15:20:14 +02:00
Jonas L
6844317920
refactor: fix pylint invalid variable name ( #312 )
...
##### SUMMARY
Pylint complains about too short/meaningless variable names. We want to
be explicit when naming variables.
2023-08-25 16:19:15 +02:00
Jonas L
c56cbab1a0
refactor: use f-strings ( #310 )
...
##### SUMMARY
Replace string interpolation with f-strings. Improves readability, and
should help prevent #309
2023-08-24 11:27:40 +02:00
Jonas L
deee06281e
chore: prepare v2.1.1 ( #311 )
...
##### SUMMARY
Prepare v2.1.1 release.
This should also trigger a new publish process, since 2.1.0 never had
the change to be published to ansible-galaxy.
2023-08-23 15:44:10 +02:00
urbanekpj
8f42c4d950
fix: string formatting error on deprecated server type warning ( #309 )
...
##### SUMMARY
after deprecating "server type" warning should be shown but due to error
in string message there is crash.
```
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 942, in <module>
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 925, in main
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 858, in present_server
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 405, in _create_server
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 541, in _get_server_type
File "/tmp/ansible_hcloud_server_payload__bgoim7j/ansible_hcloud_server_payload.zip/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_server.py", line 558, in _check_and_warn_deprecated_server
TypeError: %i format: a real number is required, not str
```
##### ISSUE TYPE
- Bugfix Pull Request
##### COMPONENT NAME
hcloud_server
---------
Co-authored-by: jo <ljonas@riseup.net>
2023-08-23 14:08:06 +02:00
Jonas L
372023796a
chore: prepare v2.1.0 ( #304 )
...
##### SUMMARY
Prepare v2.1.0 release.
2023-08-21 09:35:36 +02:00
Jonas L
5475a9929a
feat: target health status in hcloud_load_balancer_info ( #305 )
2023-08-17 15:25:14 +02:00
renovate[bot]
7d2300f1ec
deps: update dependency hcloud to v1.28.0 ( #306 )
...
* deps: update dependency hcloud to v1.28.0
* chore: update vendored files
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-08-17 15:02:50 +02:00
Jonas L
4bb2bb80fa
feat: query floating ip info by name ( #303 )
...
##### SUMMARY
Fixes #302
The feature was missing, this make the floating_ip_info module consistent with what is expected to be implemented.
##### ISSUE TYPE
- Feature Pull Request
##### COMPONENT NAME
floating_ip_info
2023-08-17 11:50:19 +02:00
Jonas L
e461a890fa
fix: consistently fail on invalid ID in *_info
modules ( #301 )
...
* fix: consistently fail on invalid ID in `*_info` modules
* remove unused import
2023-08-16 16:14:55 +02:00
Jonas L
32b44647ef
feat: allow caching the hcloud inventory ( #287 )
...
* feat: allow caching the hcloud inventory
* chore: add changelog fragment
2023-08-16 11:59:17 +02:00
Jonas L
2d739edc88
feat: use collection version for the inventory user agent ( #297 )
2023-08-14 15:55:04 +02:00
renovate[bot]
e89835531f
deps: update dependency hcloud to v1.27.2 ( #294 )
...
* deps: update dependency hcloud to v1.27.2
* chore: update vendored files
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
2023-08-11 16:09:41 +02:00
Jonas L
5c4079e059
fix: do not error on location_info invalid id ( #292 )
...
* test: fix hcloud_location_info with wrong id test
* chore: cleanup hcloud_location_info tests
* fix: error on location_info invalid id
2023-08-09 12:42:22 +02:00