Skip to content

Commit

Permalink
addressed PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AnilGadiyarHJ committed Jan 13, 2025
1 parent 0a89c88 commit 9444fe4
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 8 deletions.
51 changes: 48 additions & 3 deletions plugins/modules/dns_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,22 @@
elements: dict
contains:
algorithm:
description: ""
description:
- "Specifies the cryptographic algorithm used for DNSSEC. Supported values and their corresponding mappings are as follows."
- "RSAMD5 (1)"
- "DH (2)"
- "DSA (3)"
- "RSASHA1 (5)"
- "DSANSEC3SHA1 (6)"
- "RSASHA1NSEC3SHA1 (7)"
- "RSASHA256 (8)"
- "RSASHA512 (10)"
- "ECDSAP256SHA256 (13)"
- "ECDSAP384SHA384 (14)"
- "**Deprecated Algorithms:**"
- "RSAMD5 (1)"
- "DSA (3)"
- "DSANSEC3SHA1 (6)"
type: int
returned: Always
protocol_zone:
Expand Down Expand Up @@ -1142,7 +1157,22 @@
elements: dict
contains:
algorithm:
description: ""
description:
- "Specifies the cryptographic algorithm used for DNSSEC. Supported values and their corresponding mappings are as follows."
- "RSAMD5 (1)"
- "DH (2)"
- "DSA (3)"
- "RSASHA1 (5)"
- "DSANSEC3SHA1 (6)"
- "RSASHA1NSEC3SHA1 (7)"
- "RSASHA256 (8)"
- "RSASHA512 (10)"
- "ECDSAP256SHA256 (13)"
- "ECDSAP384SHA384 (14)"
- "**Deprecated Algorithms:**"
- "RSAMD5 (1)"
- "DSA (3)"
- "DSANSEC3SHA1 (6)"
type: int
returned: Always
protocol_zone:
Expand Down Expand Up @@ -1491,7 +1521,22 @@
elements: dict
contains:
algorithm:
description: ""
description:
- "Specifies the cryptographic algorithm used for DNSSEC. Supported values and their corresponding mappings are as follows."
- "RSAMD5 (1)"
- "DH (2)"
- "DSA (3)"
- "RSASHA1 (5)"
- "DSANSEC3SHA1 (6)"
- "RSASHA1NSEC3SHA1 (7)"
- "RSASHA256 (8)"
- "RSASHA512 (10)"
- "ECDSAP256SHA256 (13)"
- "ECDSAP384SHA384 (14)"
- "**Deprecated Algorithms:**"
- "RSAMD5 (1)"
- "DSA (3)"
- "DSANSEC3SHA1 (6)"
type: int
returned: Always
protocol_zone:
Expand Down
51 changes: 48 additions & 3 deletions plugins/modules/dns_server_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,22 @@
elements: dict
contains:
algorithm:
description: ""
description:
- "Specifies the cryptographic algorithm used for DNSSEC. Supported values and their corresponding mappings are as follows."
- "RSAMD5 (1)"
- "DH (2)"
- "DSA (3)"
- "RSASHA1 (5)"
- "DSANSEC3SHA1 (6)"
- "RSASHA1NSEC3SHA1 (7)"
- "RSASHA256 (8)"
- "RSASHA512 (10)"
- "ECDSAP256SHA256 (13)"
- "ECDSAP384SHA384 (14)"
- "**Deprecated Algorithms:**"
- "RSAMD5 (1)"
- "DSA (3)"
- "DSANSEC3SHA1 (6)"
type: int
returned: Always
protocol_zone:
Expand Down Expand Up @@ -196,7 +211,22 @@
elements: dict
contains:
algorithm:
description: ""
description:
- "Specifies the cryptographic algorithm used for DNSSEC. Supported values and their corresponding mappings are as follows."
- "RSAMD5 (1)"
- "DH (2)"
- "DSA (3)"
- "RSASHA1 (5)"
- "DSANSEC3SHA1 (6)"
- "RSASHA1NSEC3SHA1 (7)"
- "RSASHA256 (8)"
- "RSASHA512 (10)"
- "ECDSAP256SHA256 (13)"
- "ECDSAP384SHA384 (14)"
- "**Deprecated Algorithms:**"
- "RSAMD5 (1)"
- "DSA (3)"
- "DSANSEC3SHA1 (6)"
type: int
returned: Always
protocol_zone:
Expand Down Expand Up @@ -545,7 +575,22 @@
elements: dict
contains:
algorithm:
description: ""
description:
- "Specifies the cryptographic algorithm used for DNSSEC. Supported values and their corresponding mappings are as follows."
- "RSAMD5 (1)"
- "DH (2)"
- "DSA (3)"
- "RSASHA1 (5)"
- "DSANSEC3SHA1 (6)"
- "RSASHA1NSEC3SHA1 (7)"
- "RSASHA256 (8)"
- "RSASHA512 (10)"
- "ECDSAP256SHA256 (13)"
- "ECDSAP384SHA384 (14)"
- "**Deprecated Algorithms:**"
- "RSAMD5 (1)"
- "DSA (3)"
- "DSANSEC3SHA1 (6)"
type: int
returned: Always
protocol_zone:
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/targets/dns_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@
- dns_server_info.objects[0].comment == "test comment"

- name: Create a DNS Server with Custom Root Nameservers
#tags: dns_server
infoblox.bloxone.dns_server:
name: "{{ dns_server_name }}"
custom_root_ns:
Expand Down Expand Up @@ -262,7 +261,7 @@
- dns_server_info.objects | length == 1
- dns_server_info.objects[0].dnssec_trust_anchors[0].algorithm == 8
- dns_server_info.objects[0].dnssec_trust_anchors[0].zone == "test-infoblox.com."
- dns_server_info.objects[0].dnssec_trust_anchors[0].sep == true # Ensure 'sep' is false
- dns_server_info.objects[0].dnssec_trust_anchors[0].sep == true

- name: Create a DNS Server with DNSSEC Validate Expiry enabled
infoblox.bloxone.dns_server:
Expand Down

0 comments on commit 9444fe4

Please sign in to comment.