Skip to content
Snippets Groups Projects
Unverified Commit 2fa9ed91 authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #808 from rjeffman/ipatrust_type_choices

ipatrust: Set valid choices for trust_type.
parents 9b0558a9 6124dc0c
No related branches found
No related tags found
No related merge requests found
...@@ -105,6 +105,7 @@ Variable | Description | Required ...@@ -105,6 +105,7 @@ Variable | Description | Required
`password` | Active Directory domain administrator's password string. | no `password` | Active Directory domain administrator's password string. | no
`server` | Domain controller for the Active Directory domain string. | no `server` | Domain controller for the Active Directory domain string. | no
`trust_secret` | Shared secret for the trust string. | no `trust_secret` | Shared secret for the trust string. | no
`trust_type` | Trust type. Currently, only 'ad' for Active Directory is supported. | no
`base_id` | First posix id for the trusted domain integer. | no `base_id` | First posix id for the trusted domain integer. | no
`range_size` | Size of the ID range reserved for the trusted domain integer. | no `range_size` | Size of the ID range reserved for the trusted domain integer. | no
`range_type` | Type of trusted domain ID range, It can be one of `ipa-ad-trust` or `ipa-ad-trust-posix`and defaults to `ipa-ad-trust`. | no `range_type` | Type of trusted domain ID range, It can be one of `ipa-ad-trust` or `ipa-ad-trust-posix`and defaults to `ipa-ad-trust`. | no
......
...@@ -44,7 +44,8 @@ options: ...@@ -44,7 +44,8 @@ options:
description: description:
- Trust type (ad for Active Directory, default) - Trust type (ad for Active Directory, default)
default: ad default: ad
required: true required: false
choices: ["ad"]
admin: admin:
description: description:
- Active Directory domain administrator - Active Directory domain administrator
...@@ -103,7 +104,7 @@ EXAMPLES = """ ...@@ -103,7 +104,7 @@ EXAMPLES = """
realm: ad.example.test realm: ad.example.test
trust_type: ad trust_type: ad
admin: Administrator admin: Administrator
password: Welcome2020! password: SomeW1Npassword
state: present state: present
# delete ad-trust # delete ad-trust
...@@ -190,7 +191,8 @@ def main(): ...@@ -190,7 +191,8 @@ def main():
state=dict(type="str", default="present", state=dict(type="str", default="present",
choices=["present", "absent"]), choices=["present", "absent"]),
# present # present
trust_type=dict(type="str", default="ad", required=False), trust_type=dict(type="str", default="ad", required=False,
choices=["ad"]),
admin=dict(type="str", default=None, required=False), admin=dict(type="str", default=None, required=False),
password=dict(type="str", default=None, password=dict(type="str", default=None,
required=False, no_log=True), required=False, no_log=True),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment