Skip to content
Snippets Groups Projects
Unverified Commit 35d76588 authored by Sergio Oliveira Campos's avatar Sergio Oliveira Campos
Browse files

Added alias module arguments in dnszone module

parent 492a2bf3
No related branches found
No related tags found
No related merge requests found
...@@ -163,6 +163,7 @@ Variable | Description | Required ...@@ -163,6 +163,7 @@ Variable | Description | Required
-------- | ----------- | -------- -------- | ----------- | --------
`ipaadmin_principal` | The admin principal is a string and defaults to `admin` | no `ipaadmin_principal` | The admin principal is a string and defaults to `admin` | no
`ipaadmin_password` | The admin password is a string and is required if there is no admin ticket available on the node | no `ipaadmin_password` | The admin password is a string and is required if there is no admin ticket available on the node | no
`name` \| `zone_name` | The zone name string. | yes
`forwarders` | The list of forwarders dicts. Each `forwarders` dict entry has:| no `forwarders` | The list of forwarders dicts. Each `forwarders` dict entry has:| no
  | `ip_address` - The IPv4 or IPv6 address of the DNS server. | yes   | `ip_address` - The IPv4 or IPv6 address of the DNS server. | yes
  | `port` - The custom port that should be used on this server. | no   | `port` - The custom port that should be used on this server. | no
...@@ -172,7 +173,7 @@ Variable | Description | Required ...@@ -172,7 +173,7 @@ Variable | Description | Required
`name_server`| Authoritative nameserver domain name | no `name_server`| Authoritative nameserver domain name | no
`admin_email`| Administrator e-mail address | no `admin_email`| Administrator e-mail address | no
`update_policy`| BIND update policy | no `update_policy`| BIND update policy | no
`dynamic_update`| Allow dynamic updates | no `dynamic_update` \| `dynamicupdate` | Allow dynamic updates | no
`dnssec`| Allow inline DNSSEC signing of records in the zone | no `dnssec`| Allow inline DNSSEC signing of records in the zone | no
`allow_transfer`| List of IP addresses or networks which are allowed to transfer the zone | no `allow_transfer`| List of IP addresses or networks which are allowed to transfer the zone | no
`allow_query`| List of IP addresses or networks which are allowed to issue queries | no `allow_query`| List of IP addresses or networks which are allowed to issue queries | no
......
...@@ -38,6 +38,11 @@ options: ...@@ -38,6 +38,11 @@ options:
description: The admin password description: The admin password
required: false required: false
name:
description: The zone name string.
required: true
type: str
alises: ["zone_name"]
forwarders: forwarders:
description: The list of global DNS forwarders. description: The list of global DNS forwarders.
required: false required: false
...@@ -71,10 +76,15 @@ options: ...@@ -71,10 +76,15 @@ options:
description: Administrator e-mail address description: Administrator e-mail address
required: false required: false
type: str type: str
update_policy: BIND update policy update_policy:
description: Allow dynamic updates description: BIND update policy
required: false required: false
type: str type: str
dynamic_update:
description: Allow dynamic updates
required: false
type: bool
alises: ["dynamicupdate"]
dnssec: dnssec:
description: Allow inline DNSSEC signing of records in the zone description: Allow inline DNSSEC signing of records in the zone
required: false required: false
...@@ -415,7 +425,9 @@ def get_argument_spec(): ...@@ -415,7 +425,9 @@ def get_argument_spec():
), ),
ipaadmin_principal=dict(type="str", default="admin"), ipaadmin_principal=dict(type="str", default="admin"),
ipaadmin_password=dict(type="str", required=False, no_log=True), ipaadmin_password=dict(type="str", required=False, no_log=True),
name=dict(type="str", default=None, required=True), name=dict(
type="str", default=None, required=True, aliases=["zone_name"]
),
forwarders=dict( forwarders=dict(
type="list", type="list",
default=None, default=None,
...@@ -432,7 +444,12 @@ def get_argument_spec(): ...@@ -432,7 +444,12 @@ def get_argument_spec():
admin_email=dict(type="str", required=False, default=None), admin_email=dict(type="str", required=False, default=None),
allow_sync_ptr=dict(type="bool", required=False, default=None), allow_sync_ptr=dict(type="bool", required=False, default=None),
update_policy=dict(type="str", required=False, default=None), update_policy=dict(type="str", required=False, default=None),
dynamic_update=dict(type="bool", required=False, default=None), dynamic_update=dict(
type="bool",
required=False,
default=None,
aliases=["dynamicupdate"],
),
dnssec=dict(type="bool", required=False, default=None), dnssec=dict(type="bool", required=False, default=None),
allow_transfer=dict(type="list", required=False, default=None), allow_transfer=dict(type="list", required=False, default=None),
allow_query=dict(type="list", required=False, default=None), allow_query=dict(type="list", required=False, default=None),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment