Browse Source

make markuman.hetzner_dns deprecated. functionality is included and improved in community.dns

main
Markus Bergholz 8 months ago
parent
commit
99196088ef
No known key found for this signature in database
GPG Key ID: B45724801354B174
  1. 47
      README.md
  2. 2
      galaxy.yml
  3. 2
      plugins/modules/record.py
  4. 2
      plugins/modules/record_info.py
  5. 2
      plugins/modules/zone_info.py

47
README.md

@ -1,5 +1,52 @@
⚠ functionality of markuman.hetzner_dns collection has moved to community.dns with version 2.0.0 ⚠
* [Official Migration Guide](https://github.com/ansible-collections/community.dns/blob/main/docs/docsite/rst/hetzner_guide.rst#migrating-from-markuman-hetzner-dns)
In most cases, `community.dns` works as a drop-in replacement. There are tiny things to need to take care of.
In the past, you've used
```yml
- name: set dns record with markuman.hetzner_dns
markuman.hetzner_dns.record:
name: localhost
type: A
value: 127.0.0.1
ttl: 60
zone_name: osuv.de
```
With community.dns it is
```yml
- name: set same record with community.dns
community.dns.hetzner_dns_record:
name: localhost
type: A
value: 127.0.0.1
ttl: 60
zone_name: osuv.de
state: present
```
here is a diff
```diff
```yml
- name: set dns record with markuman.hetzner_dns
- markuman.hetzner_dns.record:
+ community.dns.hetzner_dns_record:
name: localhost
type: A
value: 127.0.0.1
ttl: 60
zone_name: osuv.de
+ state: present
```
# hetzner dns ansible collection
Manage DNS records using ansible. E.g. [set DNS records while creating servers in the same play](https://git.osuv.de/m/hetzner_dns/wiki/Home).
Or use hetzner DNS as an inventory for your playbooks.

2
galaxy.yml

@ -1,7 +1,7 @@
namespace: "markuman"
description: hetzner dns collection
name: "hetzner_dns"
version: "1.6.0"
version: "1.7.0"
readme: "README.md"
authors:
- "Markus Bergholz <markuman+spambelongstogoogle@gmail.com>"

2
plugins/modules/record.py

@ -73,6 +73,8 @@ def main():
supports_check_mode=True
)
module.deprecate("'markuman.hetzner_dns' collection becomes deprecated since 'community.dns' included support for hetzner dns")
dns = HetznerAPIHandler(module.params, module.fail_json)
zone_id = module.params.get("zone_id")

2
plugins/modules/record_info.py

@ -41,6 +41,8 @@ def main():
supports_check_mode=True
)
module.deprecate("'markuman.hetzner_dns' collection becomes deprecated since 'community.dns' included support for hetzner dns")
dns = HetznerAPIHandler(module.params, module.fail_json)
filters = module.params.get("filter")

2
plugins/modules/zone_info.py

@ -30,6 +30,8 @@ def main():
supports_check_mode=True
)
module.deprecate("'markuman.hetzner_dns' collection becomes deprecated since 'community.dns' included support for hetzner dns")
dns = HetznerAPIHandler(module.params, module.fail_json)
name = module.params.get("name")

Loading…
Cancel
Save