- Jul 06, 2021
-
-
Thomas Woerner authored
The parameters in the inclusive and exclusive dicts are not defined and also not checked. Therefore it is possible to have parameters in the dicts that are not used. The dicts for the inclusive and exclusive parameters are now defined and also added to the description.
-
- 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
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
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.
-
- 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 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
-
- Jan 26, 2021
-
-
Eric Nothen authored
Fixed names of sudorule member objects, as they did not match the names provided by IdM. From: To: member_host memberhost_host member_hostgroup memberhost_hostgroup member_user memberuser_user member_group memberuser_group Fixes: #500
-
- Jan 12, 2021
-
-
Rafael Guterres Jeffman authored
In `ipapermission` plugin, Some attributtes were not being managed when `action: member` was enabled. This patch enable member management for `right`, `rawfilter`, `filter, and fixes management of `memberof`. Fix issue #489
-
Rafael Guterres Jeffman authored
When adding A or AAAA records using the compatibility mode with Ansible's community general plugin, the reverse (PTR) record was added, but the A/AAAA record was not. This patch fixes the behavior. Fix issue #491
-
- Jan 08, 2021
-
-
Thomas Woerner authored
The attrs handling was not complete and did not support to ensure presence or absence of attributes with action:member. The includedattrs and excludedattrs parameters have not been added with this change as the use of attrs will automatically set includedattrs and excludedattrs. The includedattrs and excludedattrs parameters are only usable for managed permissions and duplicating attrs. The permission module may not handle privileges. An IPA internal only API has been used for this. The prvilege variable and all related code paths have been removed. Fixes: #424 ([Permission Handling] Not able to add additional attributes with existing attributes) Fixes: #425 ([Permission Handling] Not able to add member privilege while adding permission)
-
- Jan 06, 2021
-
-
Eric Nothen authored
Added code to the ipa* plugins to support Ansible's check_mode, by means of a clean exit before the execution of the actual list of commands that would otherwise create/update/delete IPA servers and/or its resources.
-
- Jan 04, 2021
-
-
Rafael Guterres Jeffman authored
Current implementation does not allow the change of an existingi Vault type. To allow it, data is retrieved from the current vault, the vault is modifiend, and then, data is stored again in the new vault. Due to changing the process of modifying a vault, this change also fixes the update of asymmetric vault keys. To change the key used, the task must provide the old private key, used to retrieve data, and the new public_key, used to store the data again. A new alias was added to public_key (new_public_key) and public_key_file (new_public_key_file) so that the playbook better express the intention of the tak. Vault tests have been updated to better test against the new update process, and a new test file has bee added: tests/vault/test_vault_change_type.
-
- Dec 29, 2020
-
-
Rafael Guterres Jeffman authored
In FreeIPA CLI, The attributes `allow_query` and `allow_transfer` can hold IPv4 or IPv6 address or network address, and the values `none` and `any`. This patch adds support for network addresses, `none` and `any`, which were not supported. Fix issue #475.
-