- May 27, 2021
-
-
chrisp authored
-
- May 26, 2021
-
-
Mark Hahl authored
There is a new automember management module placed in the plugins folder: plugins/modules/ipaautomember.py The automember module allows to ensure presence or absence of automember rules and manage automember rule conditions. Here is the documentation for the module: README-automember.md New example playbooks have been added: playbooks/automember/automember-group-absent.yml playbooks/automember/automember-group-present.yml playbooks/automember/automember-hostgroup-absent.yml playbooks/automember/automember-hostgroup-present.yml playbooks/automember/automember-hostgroup-rule-absent.yml playbooks/automember/automember-hostgroup-rule-present.yml New tests for the module: tests/automember/test_automember.yml
-
chrisp authored
-
Thomas Woerner authored
Use gen_add_list and gen_intersection_list for host, hostgroup, membermanager_user and membermanager_group member handling. The functions are used to reduce the add lists to the new entries only and the delete lists to the entries that are in the user and the show list result. This enables to remove the ignores for "already a member" and "not a member" errors..
-
Thomas Woerner authored
Use gen_add_list and gen_intersection_list for user, group, service, externalmember, membermanager_user and membermanager_group member handling. The functions are used to reduce the add lists to the new entries only and the delete lists to the entries that are in the user and the show list result. This enables to remove the ignores for "already a member" and "not a member" errors..
-
- May 25, 2021
-
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
We still need to support Python 2.
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
Fixed usage of `else` right after return, or disable pylint evaluation when it would play against code readability.
-
Rafael Guterres Jeffman authored
In some places, disabling the warnings rather than fixing it required less changes, without compromising readability.
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Thomas Woerner authored
The no_members parameter is added to args for the api command. But no_members is never part of res_find from user-show, therefore this parameter needs to be ignored in compare_args_ipa. This is needed to prevent an error in the idempotency test where a user is ensured again with the same settings.
-
Thomas Woerner authored
The new argument ignore has been added to compare_args_ipa to ignore attributes while comparing attributes of the user args and the object args returned from IPA find or show command. This code is using changes from - Wolskie in PR #392 - jake2184 in PR #486
-
Thomas Woerner authored
Currently user, group, host, hostgoup, hbacsvc and hbacsvcgroup members are always added and removed with hbacrule_add_.. and hbacrule_remove_.. if they are given as parameters with action: member. Now the module is using the new functions gen_intersection_list and gen_add_list from ansible_freeipa_module to reduce the lists to the items only that are needed to be added or removed. The errors "already a member" and "not a member" are not ignored anymore now while executing the comamnds.
-
Thomas Woerner authored
Two new functions have been added for member management in plugins: gen_add_list(user_list, res_list) Generate the add list for addition of new members. gen_intersection_list(user_list, res_list) Generate the intersection list for removal of existing members. gen_add_list should be used to add new members with action: members and state: present. It is returning the difference of the user and res list if the user list is not None. gen_intersection_list should be used to remove existing members with action: members and state: absent. It is returning the intersection of the user and res list if the user list is not None.
-
- May 24, 2021
-
-
Rafael Guterres Jeffman authored
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
-
Rafael Guterres Jeffman authored
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
-
Rafael Guterres Jeffman authored
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
-
Rafael Guterres Jeffman authored
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
-
Rafael Guterres Jeffman authored
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
-
Rafael Guterres Jeffman authored
Instead o importing ipalib.errors, modules must use ansible_freeipa_module.ipalib_errors.
-
- May 21, 2021
-
-
Rafael Guterres Jeffman authored
When `auth-ind` was empty, and it was set to be cleared, it might have triggered an uncessary change. This change add a test so that `auth-ind` is set only if needed.
-
Rafael Guterres Jeffman authored
In current implementation, when using `smb: yes`, only a small subset of the attributes can be used in the playbook. This happened due the use of `service_add_smb`, which adds a new service and does not modify an existing one, and not coping with attributes not supported by this IPA API call. The implementation was modified so that a service with `smb: true` is treated like any other service, which, in effect, simplified and fixed service search, and allowed for the use of the same attributes as with any service. Although simplified, when using `smb: true` an extra query is done against the LDAP server, as a second `service_show` is performed. Tests have been updated to reflect the new imprlementation.
-
Thomas Woerner authored
A dnszone_mod call is always made to set the serial for a zone even if this serial is set already. A check is added to make sure that the serial is only set with dnszone_mod if there is no serial set or if the serial is different.
-
- May 20, 2021
-
-
Thomas Woerner authored
The "DNS resource record not found" error occurs when a host arecord or aaaarecord member is ensured to be absent and no dnsrecord entry for the host exists. The arecord or aaaarecord item are removed from dnsrecord_args if the record is not defined in res_find_dnsrecord.
-
Thomas Woerner authored
A repeated category reset of usercategory, hostcategory, cmdcaterory, runasusercategory and hostcategory is resulting in the error "no modifications to be performed". The empty categories are now removed from the args if the category is not set in the sudorule.
-
- May 18, 2021
-
-
Thomas Woerner authored
There is a new server management module placed in the plugins folder: plugins/modules/ipaserver.py The server module allows to ensure presence and absence of servers. The module requires an existing server, the deployment of a new server can not be done with the module. DNSName has been added to ansible_freeipa_module in plugins/module_utils as this is used for locations. Here is the documentation for the module: README-server.md New example playbooks have been added: playbooks/server/server-absent-continue.yml playbooks/server/server-absent-force.yml playbooks/server/server-absent-ignore_last_of_role.yml playbooks/server/server-absent-ignore_topology_disconnect.yml playbooks/server/server-absent.yml playbooks/server/server-hidden.yml playbooks/server/server-location.yml playbooks/server/server-no-location.yml playbooks/server/server-no-service-weight.yml playbooks/server/server-not-hidden.yml playbooks/server/server-present.yml playbooks/server/server-service-weight.yml New tests for the module: tests/server/test_server.yml Change in module_utils/ansible_freeipa_module: DNSName is imported from ipapython.dnsutil and also added to __all__
-
- May 11, 2021
-
-
Thomas Woerner authored
Line too long and too many blank line errors and a trailing whitespace have been fixed.
-
- May 05, 2021
-
-
Rafael Guterres Jeffman authored
Module was raising exceptions when trying to create a new privilege with permissions. This change fixes the behavior and ensuure idempotence with trying to create a privilege with the same values. Tests for this behavior have been appended to: tests/privilege/test_privilege.yml
-
Rafael Guterres Jeffman authored
There were no test for the arguments of compare_args_ipa() to check if they were `None`, and they were used in contexts where `None` would raise exceptions. A test was added to return `False` if only one of the parameters is `None`, and `True` if both are None.
-