Skip to content

Commit

Permalink
Netcup DNS: Add support for additional record types (#7489)
Browse files Browse the repository at this point in the history
* Netcup DNS: Add support for additional record types

* Netcup DNS: Add changelog fragment

* Netcup DNS: Include information on minimum required versions in module documentation

* Apply suggestions from code review

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
buzz-tee and felixfontein authored Nov 15, 2023
1 parent e1503fc commit f8d8f69
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/7489-netcup-dns-record-types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- netcup_dns - adds support for record types ``OPENPGPKEY``, ``SMIMEA``, and ``SSHFP`` (https://github.com/ansible-collections/community.general/pull/7489).
9 changes: 7 additions & 2 deletions plugins/modules/netcup_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@
type:
description:
- Record type.
choices: ['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT', 'TLSA', 'NS', 'DS']
- Support for V(OPENPGPKEY), V(SMIMEA) and V(SSHFP) was added in community.general 8.1.0.
- Record types V(OPENPGPKEY) and V(SMIMEA) require nc-dnsapi >= 0.1.5.
- Record type V(SSHFP) requires nc-dnsapi >= 0.1.6.
choices: ['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT', 'TLSA', 'NS', 'DS', 'OPENPGPKEY', 'SMIMEA', 'SSHFP']
required: true
type: str
value:
Expand Down Expand Up @@ -213,7 +216,9 @@ def main():

domain=dict(required=True),
record=dict(required=False, default='@', aliases=['name']),
type=dict(required=True, choices=['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT', 'TLSA', 'NS', 'DS']),
type=dict(required=True, choices=['A', 'AAAA', 'MX', 'CNAME', 'CAA', 'SRV', 'TXT',
'TLSA', 'NS', 'DS', 'OPENPGPKEY', 'SMIMEA',
'SSHFP']),
value=dict(required=True),
priority=dict(required=False, type='int'),
solo=dict(required=False, type='bool', default=False),
Expand Down

0 comments on commit f8d8f69

Please sign in to comment.