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
c542fb9f
Commit
c542fb9f
authored
4 years ago
by
Rafael Guterres Jeffman
Browse files
Options
Downloads
Patches
Plain Diff
ipasudocmdgroup: Remove unused sudocmdgroup.
Remove an unused attribute that has no parallel in IPA API.
parent
d6700b96
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/modules/ipasudocmdgroup.py
+0
-6
0 additions, 6 deletions
plugins/modules/ipasudocmdgroup.py
tests/sudocmdgroup/test_sudocmdgroup.yml
+6
-11
6 additions, 11 deletions
tests/sudocmdgroup/test_sudocmdgroup.yml
with
6 additions
and
17 deletions
plugins/modules/ipasudocmdgroup.py
+
0
−
6
View file @
c542fb9f
...
@@ -50,10 +50,6 @@ options:
...
@@ -50,10 +50,6 @@ options:
description: Suppress processing of membership attributes
description: Suppress processing of membership attributes
required: false
required: false
type: bool
type: bool
sudocmdgroup:
description: List of sudocmdgroup names assigned to this sudocmdgroup.
required: false
type: list
sudocmd:
sudocmd:
description: List of sudocmds assigned to this sudocmdgroup.
description: List of sudocmds assigned to this sudocmdgroup.
required: false
required: false
...
@@ -157,7 +153,6 @@ def main():
...
@@ -157,7 +153,6 @@ def main():
# present
# present
description
=
dict
(
type
=
"
str
"
,
default
=
None
),
description
=
dict
(
type
=
"
str
"
,
default
=
None
),
nomembers
=
dict
(
required
=
False
,
type
=
'
bool
'
,
default
=
None
),
nomembers
=
dict
(
required
=
False
,
type
=
'
bool
'
,
default
=
None
),
sudocmdgroup
=
dict
(
required
=
False
,
type
=
'
list
'
,
default
=
None
),
sudocmd
=
dict
(
required
=
False
,
type
=
'
list
'
,
default
=
None
),
sudocmd
=
dict
(
required
=
False
,
type
=
'
list
'
,
default
=
None
),
action
=
dict
(
type
=
"
str
"
,
default
=
"
sudocmdgroup
"
,
action
=
dict
(
type
=
"
str
"
,
default
=
"
sudocmdgroup
"
,
choices
=
[
"
member
"
,
"
sudocmdgroup
"
]),
choices
=
[
"
member
"
,
"
sudocmdgroup
"
]),
...
@@ -180,7 +175,6 @@ def main():
...
@@ -180,7 +175,6 @@ def main():
# present
# present
description
=
ansible_module
.
params
.
get
(
"
description
"
)
description
=
ansible_module
.
params
.
get
(
"
description
"
)
nomembers
=
ansible_module
.
params
.
get
(
"
nomembers
"
)
nomembers
=
ansible_module
.
params
.
get
(
"
nomembers
"
)
sudocmdgroup
=
ansible_module
.
params
.
get
(
"
sudocmdgroup
"
)
sudocmd
=
ansible_module
.
params
.
get
(
"
sudocmd
"
)
sudocmd
=
ansible_module
.
params
.
get
(
"
sudocmd
"
)
action
=
ansible_module
.
params
.
get
(
"
action
"
)
action
=
ansible_module
.
params
.
get
(
"
action
"
)
# state
# state
...
...
This diff is collapsed.
Click to expand it.
tests/sudocmdgroup/test_sudocmdgroup.yml
+
6
−
11
View file @
c542fb9f
...
@@ -75,18 +75,13 @@
...
@@ -75,18 +75,13 @@
failed_when
:
result.changed
failed_when
:
result.changed
-
name
:
Verify sudocmdgroup creation with sudocmds
-
name
:
Verify sudocmdgroup creation with sudocmds
block
:
shell
:
|
-
name
:
Get Kerberos ticket for `admin`.
echo SomeADMINpassword | kinit -c verify_sudocmdgroup admin
shell
:
echo SomeADMINpassword | kinit -c test_sudocmdgroup_krb5ccname admin
KRB5CCNAME="verify_sudocmdgroup" ipa sudocmdgroup-show network --all
kdestroy -A -q -c verify_sudocmdgroup
-
name
:
Check sudocmdgroup-show output.
shell
:
ipa sudocmdgroup-show network --all
register
:
result
register
:
result
failed_when
:
result.failed or not("/usr/sbin/ifconfig" in result.stdout and "/usr/sbin/iwlist" in result.stdout)
failed_when
:
result.failed or not("/usr/sbin/ifconfig" in result.stdout and "/usr/sbin/iwlist" in result.stdout)
-
name
:
Destroy Kerberos tickets.
shell
:
kdestroy -A -q -c test_sudocmdgroup_krb5ccname
-
name
:
Ensure sudocmdgroup, with sudocmds, is absent
-
name
:
Ensure sudocmdgroup, with sudocmds, is absent
ipasudocmdgroup
:
ipasudocmdgroup
:
ipaadmin_password
:
SomeADMINpassword
ipaadmin_password
:
SomeADMINpassword
...
...
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