- Aug 26, 2021
-
-
Rafael Guterres Jeffman authored
New ipamodule_base_vars
-
- Aug 25, 2021
-
-
Thomas Woerner authored
ansible-lint: Add paths and files to exclude list.
-
- Aug 24, 2021
-
-
Rafael Guterres Jeffman authored
Some YAML files used in the project are not Ansible playbooks and should not be evaluated by ansible-lint. This change add the paths and files that should not be evaluated to an exclude list, that affects linter operations in CI and pre-commit scripts.
-
Thomas Woerner authored
There are common parameters in all modules like ipaadmin_principal and ipaadmin_password. As this list of common parameters will be extended soon, there is a need to reduce the code and documentation duplicates. A ModuleDocFragment is added to provide the module documentation for the common parameters. This is used in the modules with extends_documentation_fragment. ansible_freeipa_module has additional ipamodule_base_spec and get_ipamodule_base_vars. ipamodule_base_spec extends argument_spec in the module and get_ipamodule_base_vars is used to return a dict containing the common parameters.
-
- Aug 23, 2021
-
-
Rafael Guterres Jeffman authored
sudorule: Reduce addition and deletion of members to changed only
-
Thomas Woerner authored
pre-commit: Update version of pre-commit hooks.
-
Thomas Woerner authored
Use gen_add_list and gen_intersection_list for host, hostgroup, user, group, allow_sudocmd, allow_sudocmdgroup, deny_sudocmd, deny_sudocmdgroup, sudooption, runasuser, runasgroup and res_find 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..
-
- Aug 20, 2021
-
-
Rafael Guterres Jeffman authored
hbacrule: Create FQDN from single hostnames
-
Thomas Woerner authored
Single hostnames can be used for hbacrule_add_host and will match fqdn in IPA internally. Simple host names have to be extended to be FQDN to be able to compare them for _host_add and _host_remove. Two new functions have been added to ansible_freeipa_module: - api_get_domain - Get the domain from the api - ensure_fqdn - Extend a single name with the domain This fixes #617 - hbacrule_add_host: already a member
-
- Aug 19, 2021
-
-
Thomas Woerner authored
add module to create and manage automount locations
-
- Aug 12, 2021
-
-
Rafael Guterres Jeffman authored
Fix task name in selfservice example playbook.
-
- Aug 11, 2021
-
-
Rafael Guterres Jeffman authored
Replace json_query in tests/user/test_users_absent.yml
-
Thomas Woerner authored
json_query is not part of Ansible Core. As this is the only used module that is not in Core it has been replaced by constructig a new dict with the needed user names from users dict using a loop and set_fact.
-
- Jul 25, 2021
-
-
Rafael Jeffman authored
-
- Jul 14, 2021
-
-
Rafael Guterres Jeffman authored
-
chrisp authored
There is a new automount location management module placed in the plugins folder: plugins/modules/ipaautomountlocation.py This module allows to ensure presence and absence of automount locations that act as containers for automount onjects in ipa. Here is the documentation for the module: README-automountlocation.md New example playbooks have been added: playbooks/automount/automount-location-absent.yml playbooks/automount/automount-location-present.yml New tests for the module: tests/automount/test_automountlocation.yml
-
- Jul 13, 2021
-
-
Rafael Guterres Jeffman authored
automember: Verify condition keys
-
Rafael Guterres Jeffman authored
New meta/runtime.yml for galaxy for requires_ansible
-
Thomas Woerner authored
The automember_add_condition and automember_remove_condition commands are not verifying condition keys in all cases. This is for example not done in the removal case if a condition is not part of the automember rule. For consistent behaviour this needs to be done in the automember module now. The condition keys are verified with the user and group aciattrs returned by the API command json_metadata now. Related: RHBZ#1976926
-
Rafael Guterres Jeffman authored
ipaautomember: Fix documentation.
-
Varun Mylaraiah authored
-
Thomas Woerner authored
Galaxy now requires meta/runtime.yml to define requires_ansible. runtime.yml has been added with requires_ansible: ">=2.9"
-
Varun Mylaraiah authored
Missing variable "action" added in the automember module documentation.
-
- Jul 09, 2021
-
-
Thomas Woerner authored
Fix display of variables in ipaserver role README.
-
Thomas Woerner authored
Remove ignore_errors from pwpolicy tests.
-
Thomas Woerner authored
ipasudorule: Fix documentation attribute.
-
- Jul 08, 2021
-
-
Rafael Guterres Jeffman authored
automember: Fix result["failed"] issues with conditions
-
Thomas Woerner authored
result["failed"] is used only for INCLUDE_RE, EXCLUDE_RE if entries could not be added that are already there and it entries could not be removed that are not there. All other issues like invalid attributes etc. are handled as exceptions. Therefore the error section is not here as in other modules. Fixes RHBZ#1979626
-
Rafael Guterres Jeffman authored
Change, in the module documentation, the attribute named 'usergroup' to 'group', as it is used in the code.
-
Rafael Guterres Jeffman authored
Instead of ignoring errors it is better that we specific evaluate errors provided by negative tests. This patche removes the an occurrence of 'ignore_errors: true' in ansible-freeipa tests.
-
Rafael Guterres Jeffman authored
automember: Fix action to be automember or member, not service
-
Rafael Guterres Jeffman authored
automember: Fail on wrong in/ex/clusive parameter names
-
- 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.
-
Thomas Woerner authored
The action is service and member for the module, but it needs to be the module name and member.
-
- Jun 16, 2021
-
-
Rafael Guterres Jeffman authored
galaxy.yml: Drop empty dependencies
-
Thomas Woerner authored
Ansible 2.11 does not like to have empty dependencies. It will fail to install the collection with "'NoneType' object has no attribute 'items'" error. The empty dependencies have been removed. The requirements for ansible in requirements.txt have been removed also. Fixes #571 (error installing freeipa-ansible_freeipa-0.3.6.tar.gz)
-
- Jun 09, 2021
-
-
Varun Mylaraiah authored
ipabackup: Use module to get IPA_BACKUP_DIR from ipaplatform
-
Thomas Woerner authored
Up to now a python snippet was used to get IPA_BACKUP_DIR from ipaplatform but this was not working when ansible_facts was false due to not getting ansible_python_interpreter set. The module version is also working if gather_facts is turned off.
-
- Jun 05, 2021
-
-
Rafael Guterres Jeffman authored
-
Rafael Guterres Jeffman authored
-