- May 25, 2021
-
-
Rafael Guterres Jeffman authored
-
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
This is a style decision for ansible-freeipa, and in use by most modules.
-
Rafael Guterres Jeffman authored
This is expected for most modules `main()` function.
-
Rafael Guterres Jeffman authored
All instances related to `ansible.module_utils.ansible_freeipa_module`, which works. Future occurrences, if they happen, will likely not to be a problem.
-
Rafael Guterres Jeffman authored
In some places, disabling the warnings rather than fixing it required less changes, without compromising readability.
-
Rafael Guterres Jeffman authored
Protected access is required for AnsibleModule.
-
Rafael Guterres Jeffman authored
Although both warnings are relevant, the code style choosen for ansible-freeipa currently require them to be disable.
-
Rafael Guterres Jeffman authored
This should be enabled in the future, but currently, nearly all modules rely on `Exception`, and the changes would be too invasive.
-
Rafael Guterres Jeffman authored
Although it is an interesting setup, it currently has too many false positives, disable comments are not working for duplicate-code, and there are some expected duplications in the modules.
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-
Thomas Woerner authored
Fix usage of ipalib errors.
-
Thomas Woerner authored
Various spelling/style fixes in README.md
-
Thomas Woerner authored
Enhance ipaservice tests.
-
Rafael Guterres Jeffman authored
ansible_freeipa_module.py: Add ignore argument to compare_args_ipa
-
Rafael Guterres Jeffman authored
Hbacrule only make required member changes
-
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.
-
Rafael Guterres Jeffman authored
tests/azure: Install community.docker Ansible collection
-
Thomas Woerner authored
The test preparation failed with "the connection plugin 'community.docker.docker' was not found" in "Setup test container". "ansible-galaxy collection install community.docker" has been added to tests/azure/templates/playbook_tests.yml and tests/azure/templates/pytest_tests.yml
-
- 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.
-
Robbie Harwood authored
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
-
- 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.
-
Rafael Guterres Jeffman authored
This patch enables test failure report when result.failed is set, and make tests more robust against environment differences.
-
Rafael Guterres Jeffman authored
dnszone: Fix no modifications to be performed for serial
-
Rafael Guterres Jeffman authored
host: Fix DNS resource record not found error
-
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
-
-
Rafael Guterres Jeffman authored
ipasudorule: Fix category reset for idempotency
-
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.
-