Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
2fa9ed91
Unverified
Commit
2fa9ed91
authored
3 years ago
by
Thomas Woerner
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #808 from rjeffman/ipatrust_type_choices
ipatrust: Set valid choices for trust_type.
parents
9b0558a9
6124dc0c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README-trust.md
+1
-0
1 addition, 0 deletions
README-trust.md
plugins/modules/ipatrust.py
+5
-3
5 additions, 3 deletions
plugins/modules/ipatrust.py
with
6 additions
and
3 deletions
README-trust.md
+
1
−
0
View file @
2fa9ed91
...
...
@@ -105,6 +105,7 @@ Variable | Description | Required
`password` | Active Directory domain administrator's password string. | no
`server` | Domain controller for the Active Directory domain 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
`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
...
...
This diff is collapsed.
Click to expand it.
plugins/modules/ipatrust.py
+
5
−
3
View file @
2fa9ed91
...
...
@@ -44,7 +44,8 @@ options:
description:
- Trust type (ad for Active Directory, default)
default: ad
required: true
required: false
choices: [
"
ad
"
]
admin:
description:
- Active Directory domain administrator
...
...
@@ -103,7 +104,7 @@ EXAMPLES = """
realm: ad.example.test
trust_type: ad
admin: Administrator
password:
Welcome2020!
password:
SomeW1Npassword
state: present
# delete ad-trust
...
...
@@ -190,7 +191,8 @@ def main():
state
=
dict
(
type
=
"
str
"
,
default
=
"
present
"
,
choices
=
[
"
present
"
,
"
absent
"
]),
# 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
),
password
=
dict
(
type
=
"
str
"
,
default
=
None
,
required
=
False
,
no_log
=
True
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment