Commit graph

138 commits

Author SHA1 Message Date
Hetzner Cloud Bot
9cce39cf56
chore(main): release 4.2.0 (#551)
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](https://github.com/ansible-collections/hetzner.hcloud/compare/4.1.0...4.2.0)
(2024-08-30)


### Features

* compute load balancer targets status using a filter
([#550](https://github.com/ansible-collections/hetzner.hcloud/issues/550))
([fce8bc9](fce8bc9bb9))


### Bug Fixes

* check label_selector child targets with load_balancer_status filter
([#552](https://github.com/ansible-collections/hetzner.hcloud/issues/552))
([abdf722](abdf72212b))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-08-30 15:20:16 +02:00
Jonas L.
fce8bc9bb9
feat: compute load balancer targets status using a filter (#550)
##### SUMMARY

Allow to compute the status of a load balancer using a filter.

Closes #467 

##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME

hetzner.hcloud.loab_balancer_status
2024-08-14 14:18:39 +02:00
Hetzner Cloud Bot
7aa87bb9d9
chore(main): release 4.1.0 (#534)
🤖 I have created a release *beep* *boop*
---


##
[4.1.0](https://github.com/ansible-collections/hetzner.hcloud/compare/4.0.1...4.1.0)
(2024-07-25)


### Features

* deprecate `server_type_info` `included_traffic` return value
([#532](https://github.com/ansible-collections/hetzner.hcloud/issues/532))
([39aa356](39aa356c4c))
* use exponential backoff algorithm when polling actions
([#524](https://github.com/ansible-collections/hetzner.hcloud/issues/524))
([19e586f](19e586fa22))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
2024-07-25 14:01:03 +02:00
Jonas L.
92efa8dfb4
docs: add release summary (#533) 2024-07-25 13:57:12 +02:00
Jonas L.
39aa356c4c
feat: deprecate server_type_info included_traffic return value (#532)
### API Changes for Traffic Prices and Server Type Included Traffic

There will be a breaking change in the API regarding Traffic Prices and
Server Type Included Traffic on 2024-08-05. This release marks the
affected fields as `Deprecated`. Please check if this affects any of
your code and switch to the replacement fields where necessary.

You can learn more about this change in [our
changelog](https://docs.hetzner.cloud/changelog#2024-07-25-cloud-api-returns-traffic-information-in-different-format).
2024-07-25 13:45:29 +02:00
Jonas L
19e586fa22
feat: use exponential backoff algorithm when polling actions (#524)
##### SUMMARY

Replace the constant poll interval of 1 second, with a truncated
exponential back off algorithm with jitter.

Below is a suite of poll interval (in seconds) generated by the new
algorithm:
```
1.49
2.14
5.46
6.51
6.57
5.57
5.98
7.13
6.59
7.10
5.54
5.03
6.56
5.96
6.72
7.21
7.05
5.31
5.60
6.33
6.82
5.42
6.08
6.60
TOTAL: 140.77
```
2024-07-04 15:07:05 +02:00
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
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
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
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
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
jjeff07
51afb23166
feat: assign primary ip to a server on create (#465)
##### SUMMARY

Fixes #464 

##### ISSUE TYPE
- Feature Pull Request

##### COMPONENT NAME
primary_ip

---------

Co-authored-by: jo <ljonas@riseup.net>
2024-03-11 18:20:30 +01:00
Jonas L
1ae6769210
fix: return sorted alias_ips in server_network module (#458)
##### SUMMARY

- test: use testing framework for server_network integration tests
- fix: return sorted alias_ips in server_network module

##### ISSUE TYPE

- Bugfix Pull Request


##### COMPONENT NAME

server_network
2024-02-07 11:45:37 +01:00
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
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
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
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
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
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
6581ed50db
feat: add hetzner.hcloud.all action group (#396)
##### SUMMARY

This allows to use `module_defaults` against all the modules at once
using the new `hetzner.hcloud.all` `action_group`.

You can now pass the `api_token` argument using module_defaults:

```yaml
- name: Demonstrate the usage of the 'hetzner.hcloud.all' module_defaults group
  hosts: localhost
  connection: local

  module_defaults:
    group/hetzner.hcloud.all:
      api_token: "{{ _vault_hcloud_api_token }}"

  tasks:
    - name: Create a volume
      hetzner.hcloud.volume:
        name: my-volume
        location: fsn1
        size: 100
        state: present
      register: volume
```   

See the documentation and examples for more details.

##### ISSUE TYPE

- Feature Pull Request
2023-11-23 14:16:05 +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
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
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
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
5e425c56c2
feat: allow selecting a resource using its ID (#361)
##### SUMMARY

Allow referring to resources using their IDs for:
- hcloud_load_balancer_network
- hcloud_load_balancer_service
- hcloud_load_balancer_target
- hcloud_rdns
- hcloud_route
- hcloud_server_network
- hcloud_subnetwork


##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME
- hcloud_load_balancer_network
- hcloud_load_balancer_service
- hcloud_load_balancer_target
- hcloud_rdns
- hcloud_route
- hcloud_server_network
- hcloud_subnetwork
2023-10-18 10:28:42 +02:00
Jonas L
76ef636f07
feat: add deprecation field to hcloud_iso_info (#357)
##### SUMMARY

See these changelog entries for the announcement:

-
https://docs.hetzner.cloud/changelog#2023-10-12-deprecation-info-for-isos
-
https://docs.hetzner.cloud/changelog#2023-10-12-field-deprecated-on-isos-is-now-deprecated


##### ISSUE TYPE

- Feature Pull Request


##### COMPONENT NAME
hcloud_iso_info
2023-10-16 11:16:31 +02:00
Jonas L
9eab32cf3d
chore: pre-commit improvements (#348)
##### SUMMARY

- Speed up pre-commit by moving some tasks out of pre-commit
- Move network related hooks out of pre-commit (allow enabling
pre-commit.ci)
- Some optimization
- Use pre-commit.ci
2023-10-06 16:02:46 +02:00
Jonas L
7f4e4e96cc
build: don't include v prefix in version tags (#349)
##### SUMMARY

The version tag regex allowing to publish to ansible-galaxy does not
allow versions to be prefixed with a v:

468493fef4/zuul.d/pipelines.yaml (L146-L155)

Introducing the v prefix is also breaking with the previous tag naming
convention.
2023-10-06 15:59:20 +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
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
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
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