-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New idoverrideuser management module.
There is a new idoverrideuser management module placed in the plugins folder: plugins/modules/ipaidoverrideuser.py The idoverrideuser module allows to ensure presence and absence of idoverrides for users and certificate members. Here is the documentation for the module: README-idoverrideuser.md New example playbooks have been added: playbooks/idoverrideuser/idoverrideuser-absent.yml playbooks/idoverrideuser/idoverrideuser-certificate-absent.yml playbooks/idoverrideuser/idoverrideuser-certificate-present.yml playbooks/idoverrideuser/idoverrideuser-present.yml New tests for the module can be found at: tests/idoverrideuser/test_idoverrideuser.yml tests/idoverrideuser/test_idoverrideuser_client_context.yml
- Loading branch information
Showing
10 changed files
with
1,736 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Playbook to manage idoverrideuser | ||
hosts: ipaserver | ||
become: false | ||
|
||
tasks: | ||
- name: Ensure test user test_user is absent in idview test_idview | ||
ipaidoverrideuser: | ||
ipaadmin_password: SomeADMINpassword | ||
idview: test_idview | ||
anchor: test_user | ||
continue: true | ||
state: absent |
15 changes: 15 additions & 0 deletions
15
playbooks/idoverrideuser/idoverrideuser-certificate-absent.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: Playbook to manage idoverrideuser | ||
hosts: ipaserver | ||
become: false | ||
|
||
tasks: | ||
- name: Ensure test user test_user certificate member is absent in idview test_idview | ||
ipaidoverrideuser: | ||
ipaadmin_password: SomeADMINpassword | ||
idview: test_idview | ||
anchor: test_user | ||
certificate: | ||
- "{{ lookup('file', 'cert1.b64', rstrip=False) }}" | ||
action: member | ||
state: absent |
14 changes: 14 additions & 0 deletions
14
playbooks/idoverrideuser/idoverrideuser-certificate-present.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: Playbook to manage idoverrideuser | ||
hosts: ipaserver | ||
become: false | ||
|
||
tasks: | ||
- name: Ensure test user test_user certificate member is present in idview test_idview | ||
ipaidoverrideuser: | ||
ipaadmin_password: SomeADMINpassword | ||
idview: test_idview | ||
anchor: test_user | ||
certificate: | ||
- "{{ lookup('file', 'cert1.b64', rstrip=False) }}" | ||
action: member |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: Playbook to manage idoverrideuser | ||
hosts: ipaserver | ||
become: false | ||
|
||
tasks: | ||
- name: Ensure test user test_user is present in idview test_idview. | ||
ipaidoverrideuser: | ||
ipaadmin_password: SomeADMINpassword | ||
idview: test_idview | ||
anchor: test_user |
Oops, something went wrong.