- Dec 12, 2024
-
-
Rafael Guterres Jeffman authored
ipareplica: Pass ipareplica_ip_addresses to client deployment part
-
Thomas Woerner authored
The IP addresses set with ipareplica_ip_addresses have not been passed to ipaclient role for client deployment part. This resulted in not setting the IP addresses. The description for ipareplica_ip_addresses in the ipareplica README and also the role modules was wrong and have been fixed to "List of IPA replica IP addresses". Related: https://pagure.io/freeipa/issue/7405 Resolves: https://github.com/freeipa/ansible-freeipa/issues/1244
-
Thomas Woerner authored
ipagroup: Correctly handle externalmember in member actions
-
Thomas Woerner authored
ipasudorule: Evaluate all members related to hosts and users
-
- Dec 11, 2024
-
-
Rafael Guterres Jeffman authored
When handling users and hosts is ipasudorule we were missing nome entry attributes returned from FreeIPA, which would cause the add/del lists to be incorrectly generated. By adding the proper lists, both attributes are handled correctly. A new test to verify the fix is added: tests/sudorule/test_sudorule_user_host_external.yml Fixes https://issues.redhat.com/browse/RHEL-68439
-
Thomas Woerner authored
ipacert: Revoking with removeFromCRL should be handled as cert release
-
Rafael Guterres Jeffman authored
utils/build-galaxy-release.sh: Do not create duplicates for role plugins
-
Thomas Woerner authored
ansible-test sanity test "metaclass-boilerplate" fails now to recognize the line "__metaclass__ = type" if there is a pylint disable comment appended to the same line to not fail on using bad class naming. The pylint disable comment has been moved to an extra preceding line and an additional enable commend has been added after the metaclass line.
-
- Dec 10, 2024
-
-
Thomas Woerner authored
This change reduces the size of the Ansible collection and removes unused files. While creating the collection, the role plugins have been linked into the global plugin folders, but a subsequent sed call replaced the links with changed files. The original files have also been changed with another sed call in the same way. This resulted in the duplication of the changed files. The plugins of the roles are now moved into the global plugin folders and only changed there. The now empty plugin folders in the roles are removed.
-
Rafael Guterres Jeffman authored
When creating the lists of external members, the attribute 'ipaexternalmember' also needs to be added to the list of external members that are part of the group object for external groups. A test to verify the correct behavior was added and the test suite for group external members have been cleaned up with 'yes' values changed to 'true' and the use of module_defaults.
-
- Dec 05, 2024
-
-
Rafael Guterres Jeffman authored
When a revoked certificate with reason 6 (certificateHold) is revoked with reason 8 (removeFromCRL), the effect is that the certificate is valid again, as it is the same procedure as 'state: release'. This is, at least, the behavior with IPA CLI comands, which is implemented by this patch. A new test is added to verify this behavior: tests/cert/test_cert_remove_hold_with_removeFromCRL.yml
-
- Dec 03, 2024
-
-
Thomas Woerner authored
modules: Do not hide errors using IPA *_show command with Exception
-
Rafael Guterres Jeffman authored
Modify the plugin templates so that the code generated does not hide errors when querying IPA wih *_show command by handlig only the exeption where an object is not found.
-
Rafael Guterres Jeffman authored
When searching for objects with *_show IPA API command, most plugins were hiding errors other than "ipalib_errors.NotFound" by handling the broad exception Exception instead. This patch uses "ipalib_errors.NotFound" whenever "*_show" is used so that the only exception handled is when an object is not found. Other errors will not be handled making the module break as expected.
-
- Dec 02, 2024
-
-
Rafael Guterres Jeffman authored
infra/image: Use SYS_ADMIN capability for server deployment
-
Thomas Woerner authored
-
Thomas Woerner authored
-
Thomas Woerner authored
This adds the capabilities SYS_ADMIN and SYSLOG to the container_create call in build.sh as long as server deployment has been enabled. The privileged option has been removed as it is no longer needed. The hostnamectl-wrapper for the container has been removed as it is no longer needed.
-
- Nov 29, 2024
-
-
Rafael Guterres Jeffman authored
infra/image/dockerfile/c10s: Fix client part deployment for the server
-
- Nov 28, 2024
-
-
Rafael Guterres Jeffman authored
infra/image/shcontainer: New container_copy and container_fetch
-
- Nov 26, 2024
-
-
Rafael Guterres Jeffman authored
Change minimum Ansible version to 2.14
-
Thomas Woerner authored
RHEL-9 is still using ansible-core 2.14.
-
- Nov 19, 2024
-
-
Thomas Woerner authored
The client part deployment fails in the configuration of NIS. The command /usr/bin/nisdomainname is failing in a container in this task as the container is not privileged. The hostnamectl-wrapper is copied from the freeipa-container container project to replace /usr/bin/nisdomainname in the container.
-
Thomas Woerner authored
container_copy can be used to copy a file to the container, container_fetch can be used to copy a file from the container. For more information, please have a look at the podman-cp man page.
-
Thomas Woerner authored
ipasudorule: Add support for batch mode and multiple sudorules
-
- Nov 18, 2024
-
-
Rafael Guterres Jeffman authored
Unless there's a real need to use privileged access or to gather Ansible facts upfront, we should always set "become: false" and "gather_facts: false". In the case that only a few Ansible facts are required, 'ansible.builtin.setup' with 'gather_subset' should be used. As the YAML 1.2 standard dictates, boolean values should only use 'true' or 'false' values. This patch fixes these issues in the 'sudorule' test suite.
-
Rafael Guterres Jeffman authored
Currently, ipasudorule must add or modify a single sudorule at a time, incurring in more load in the server if there are many rules to be processed. This patch adds suport for adding multiple sudorules in one playbook task by using the parameter 'sudorules' and defining a list of sudorules configurations to be ensured. As multiple sudorules will be processed, the patch also enables batch mode processing of sudorules, trying to reduce the load on the server. Test 'tests/sudorule/test_sudorule_client_context.yml' was modified to include tasks with 'sudorules' to be executed both on the server or on the client context. New tests were added to the sudorule test suite: tests/sudorule/test_sudorules.yml tests/sudorule/test_sudorules_member_case_insensitive.yml
-
- Nov 15, 2024
-
-
Rafael Guterres Jeffman authored
This patch adds the class EntryFactory to the ansible-freeipa module utils. This class allows the handling of modules with multiple object entries as list of objects. When the multi-object parameter is not used, it creates a list of a single object, allowing for the same code idiom to be used. The entries created can be used both as objects, by acessing the values as properties, or as dictionaires, by accessing the elements as key-value pairs.
-
- Nov 13, 2024
-
-
Thomas Woerner authored
upstream CI: Use Azure 'loops' to create stages
-
Rafael Guterres Jeffman authored
This patch modify the pipelines to create stages using the 'each' expression on Azure pipelines, so that the configuration and the list of distributions can be set using variables. Testing CentOS 8 Stream and Galaxy collections still need to be handled in a separate group, although, the pipeline configuration becomes easily changed, specially when updating Ansible versions.
-
- Nov 12, 2024
-
-
Thomas Woerner authored
infra/image/build.sh: Use consistent options for hostname
-
Rafael Guterres Jeffman authored
This patch makes the CLI argument for setting the image hostname consistent with 'start.sh', settling on '-n HOSTNAME' for both scripts.
-
- Nov 07, 2024
-
-
Thomas Woerner authored
upstream CI: Move scripts that evaluate repo changes to infra/azure
-
Thomas Woerner authored
linters: Remove pydocstyle from linter checks
-
- Nov 06, 2024
-
-
Rafael Guterres Jeffman authored
Pydocstyle has been deprecated is no longer in development. It is also not a requirement for Ansible tests. This patch removes pydocstyle from current checks performed.
-
- Nov 04, 2024
-
-
Rafael Guterres Jeffman authored
tests/user/test_users_present_*: Use new generate_test_data.yml
-
Rafael Guterres Jeffman authored
fixipaip infra image service: No need for hard coded admin password
-
Rafael Guterres Jeffman authored
test_services_absent is also part of test_services_present, not needed
-
Thomas Woerner authored
Update images to Fedora 41
-
Rafael Guterres Jeffman authored
Deploying FreeIPA in the testing containers requires privileged access.
-