- Feb 15, 2022
-
-
Rafael Guterres Jeffman authored
CentOS 9 Stream package pytho3-devel was not installable, and as it is not required for the testing container, it was removed from the Dockerfile used to create the image.
-
Rafael Guterres Jeffman authored
This disables the generation of the collection using the default galaxy.yml. The installation of the generated collection fails with invalid version A.B.C. The collection is not used when building containers and the generated collection is not using proper name and namespace in the collection files.
-
Rafael Guterres Jeffman authored
Currently the pipeline used to create test containers is using Python 3.6.15, and Ansible 2.12 requires, at least, Python 3.8. This change adds a new parameter to build container template, `python_version`, which is set by default to '3.x', meaning it will use the latest Python version available (for version 3) if the parameter is not explicitly set.
-
- Feb 11, 2022
-
-
Rafael Guterres Jeffman authored
test_servicedelegationtarget.yml: Added list tests
-
- Feb 10, 2022
-
-
Thomas Woerner authored
List tests, also an empty list test has been added.
-
- Feb 09, 2022
-
-
Thomas Woerner authored
Fixes `no_log` warning for `ipahost` module
-
- Feb 08, 2022
-
-
Rafael Guterres Jeffman authored
New servicedelegationrule management module
-
Thomas Woerner authored
There is a new servicedelegationrule management module placed in the plugins folder: plugins/modules/ipaservicedelegationrule.py The servicedelegationrule module allows to ensure presence and absence of servicedelegationrules and servicedelegationrule members. Here is the documentation of the module: README-servicedelegationrule.md New example playbooks have been added: playbooks/servicedelegationrule/servicedelegationrule-absent.yml playbooks/servicedelegationrule/servicedelegationrule-principal-member-absent.yml playbooks/servicedelegationrule/servicedelegationrule-principal-member-present.yml playbooks/servicedelegationrule/servicedelegationrule-target-member-absent.yml playbooks/servicedelegationrule/servicedelegationrule-target-member-present.yml playbooks/servicedelegationrule/servicedelegationrule-present.yml New tests for the module: tests/servicedelegationrule/test_servicedelegationrule.yml tests/servicedelegationrule/test_servicedelegationrule_client_context.yml tests/servicedelegationrule/test_servicedelegationrule_hostprincipal.yml
-
- Feb 07, 2022
-
-
Rafael Guterres Jeffman authored
New servicedelegationtarget management module
-
Thomas Woerner authored
There is a new servicedelegationtarget management module placed in the plugins folder: plugins/modules/ipaservicedelegationtarget.py The servicedelegationtarget module allows to ensure presence and absence of servicedelegationtargets and servicedelegationtarget members. Here is the documentation of the module: README-servicedelegationtarget.md New example playbooks have been added: playbooks/servicedelegationtarget/servicedelegationtarget-absent.yml playbooks/servicedelegationtarget/servicedelegationtarget-member-absent.yml playbooks/servicedelegationtarget/servicedelegationtarget-member-present.yml playbooks/servicedelegationtarget/servicedelegationtarget-present.yml New tests for the module: tests/servicedelegationtarget/test_servicedelegationtarget.yml tests/servicedelegationtarget/test_servicedelegationtarget_client_context.yml tests/servicedelegationtarget/test_servicedelegationtarget_hostprincipal.yml
-
- Feb 03, 2022
-
-
Thomas Woerner authored
This function will be used in servicedelegation target and rule modules to normalize principals given in the tasks. These can be service and host principals and also aliases. Note: The use of host principals requires IPA 4.9.0 or later. fail_json is called if the version is lower. servicedelegation_normalize_principals contains two embedded fuctions. One is normalize_principal_name that has been copied from ipaserver/plugins/servicedelegation.py, the other is the generic function _check_exists to be able to check if a host or service exists.
-
- Jan 31, 2022
-
-
Austin authored
Similar to PR 286 This PR explicitly sets `no_log` option for `update_password` attribute to `False`, so that the warning on `no_log` not being set is not issued anymore. Ansible incorrectly issued the warning, as `update_password` does not carry sensitive information.
-
- Jan 27, 2022
-
-
Rafael Guterres Jeffman authored
group test: Enable ansible_facts, fix service hostname
-
Thomas Woerner authored
The service hostname needs to be gathered from ansibe_facts as it might not be "ipaserver". ansible_facts['fqdn'] is now used as the service hostname, therefore gather_facts had to be turned on.
-
- Jan 26, 2022
-
-
Thomas Woerner authored
ipauser: Fix idempotence issue when using 'preserved'.
-
Rafael Guterres Jeffman authored
When ensuring states 'undeleted', 'enabled', 'disabled', and 'unlocked' the error messages for an unexistent user were not consistent. This change changes the message for all states to "No user '%s'."
-
- Jan 25, 2022
-
-
Rafael Guterres Jeffman authored
When trying to ensure 'state: absent' with 'preserved: yes' in ipauser, after the first execution the playbook would fail with "user is already present". Similar idempotence issue would happen when 'state: undelete' was used. This PR fixes both issues, and improve tests for the states where user is preserved, enabled and disabled. The 'find_user' function now uses IPA API 'user_show' instead of 'user_find' so that only the requested user is actually returned.
-
Thomas Woerner authored
dnsconfig: Add 'action: member' to dnsconfig example playbooks.
-
- Jan 24, 2022
-
-
Rafael Guterres Jeffman authored
As of verison 1.6.1 of ansible-freeipa, ipadnsconfig supports 'action: member' to manage DNS forwardes, and requires the use of this action if 'state: present'. This patch fixes the playbook examples.
-
Rafael Guterres Jeffman authored
group: Services are ipapython.kerberos.Principal and case insensitive
-
Thomas Woerner authored
sudorule: Fix management of deny_sudocmdgroup.
-
Thomas Woerner authored
The services returned by group_find are of type ipapython.kerberos.Principal. Addtionally the services are case insensitive. Therefore services need to be converted to a lowercase sting for proper comparison. test_group.yml has been extended with service tests.
-
Rafael Guterres Jeffman authored
Upstream tests were not testing one path of code related to variable `deny_sudocmdgroup`, and a regression was added. This patch fixes a call to the current configuration dictionary, and add tests so that the code path is executed in the upstream tests.
-
- Jan 21, 2022
-
-
Thomas Woerner authored
automountmap: Add client context test playbook.
-
Rafael Guterres Jeffman authored
The client context test playbook was missing for ipaautomountmap.
-
- Jan 20, 2022
-
-
Rafael Guterres Jeffman authored
User tests: Extend expiration dates for client on server test
-
Thomas Woerner authored
The client context on server test is failing with a date that is expired. The server context on server test is not failing. Setting an expired date with the command line is possible though.
-
Thomas Woerner authored
dnsconfig: add support for 'action: member'.
-
Rafael Guterres Jeffman authored
This patch adds support for 'action: member' for ipadnsconfig plugin, impacting management of DNS forwarders setting. Use of 'state: absent' now requires 'action: member'. With 'state: present', orwarders can be either defined through 'action: dnsconfig' or added using 'action: member'. Tests have been updated to reflec the new behavior.
-
Thomas Woerner authored
sudorule: fix idempotence issues and refactor.
-
Rafael Guterres Jeffman authored
This change refactors member management for ipasudorule module and fixes idempotence issues related to case insensitive comparison.
-
Thomas Woerner authored
dnsconfig: Fix management of forwarders.
-
- Jan 19, 2022
-
-
Rafael Guterres Jeffman authored
ipahostgroup: Ensure host members are lowercase and FQDN
-
Rafael Guterres Jeffman authored
If one tries to set a list of forwarders which include an already existing forwarder, the existing forwarder is removed, and the list of configured forwarders contain only the new ones. This patch fixes this behavior by setting a union of the currently available forwarders and the list of forwarders provided in the playbook. Tests were added to ensure this behavior.
-
Thomas Woerner authored
The host members of ipahostgroup need to be lowercase and FQDN to be able to do a proper comparison with exising hosts in the hostgroup. Fixes: #666 (ipahostgroup not idempotent and with error)
-
Rafael Guterres Jeffman authored
README test: Also check role readme files
-
Thomas Woerner authored
The test is now also checking that role README files are mentioned in the main README.
-
- Jan 18, 2022
-
-
Rafael Guterres Jeffman authored
ipaclient_get_keytab: Do not use gssapi for kinit_keytab
-
Thomas Woerner authored
Due to a change in Ansible to depend on Python 3.8 it is needed to only use bindings that are provided by Python and Ansible core. gssapi is therefore not usable any more. The kinit_keytab function was using gssapi and now has to use the kinit command insead.
-
- Jan 17, 2022
-
-
Rafael Guterres Jeffman authored
README.md: Add automount key and map, fix ref to hbacsvcgroup and test
-