Skip to content
  1. Nov 26, 2024
  2. Nov 19, 2024
  3. Nov 18, 2024
    • Rafael Guterres Jeffman's avatar
      tests/sudorule: Don't become or gather_facts and use only true/false · 6c94fe9b
      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.
      6c94fe9b
    • Rafael Guterres Jeffman's avatar
      ipasudorule: Add support for batch mode and multiple sudorules · 4fa06211
      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
      4fa06211
  4. Nov 15, 2024
    • Rafael Guterres Jeffman's avatar
      ansible_freeipa_module_utils: Add EntryFactory class · da775a21
      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.
      da775a21
  5. Nov 13, 2024
  6. Nov 12, 2024
  7. Nov 07, 2024
  8. Nov 06, 2024
  9. Nov 04, 2024
  10. Nov 01, 2024
  11. Oct 31, 2024
    • Thomas Woerner's avatar
      Merge pull request #1300 from rjeffman/update_upstream_ci · 33c1c006
      Thomas Woerner authored
      Fix upstream CI and remove molecule
      33c1c006
    • Rafael Guterres Jeffman's avatar
      upstream CI: Update Ansible version · 0f530df0
      Rafael Guterres Jeffman authored
      ansible-core versions 2.15 and 2.16 and used for all pipelines, but
      version 2.17 is not used for CentOS 8 Stream, as platform python on
      this version is 3.6 which is not supported in this ansible-core version.
      0f530df0
    • Rafael Guterres Jeffman's avatar
    • Rafael Guterres Jeffman's avatar
    • Rafael Guterres Jeffman's avatar
      upstream CI: Simplify pipelines enviroment creation · 367d30a3
      Rafael Guterres Jeffman authored
      Several optimizations have been done to the pipelines, to make them
      closer to what can be reproduced, with the existing scripts, in a
      development environment:
      
      - Use start.sh and build.sh scripts to build and start containers
      - Use variables to configure different stages instead of using separate
        files
      - Use a commom 'prepare_environment' to create the environment for every
        pipeline
      - Use a single file defining testing steps (run_tests.yml)
      - Remove Centos 7 pipelines
      - Reduce the number of pipelines in the test matrix due to the amount of
        time that tests were using
      - Use Azure "loop" (each) to create test groups
      
      The above changes make the pipelines easier to understand and modify.
      367d30a3
    • Rafael Guterres Jeffman's avatar
      upstream ci: Move Azure scripts to infra directory · 77c34aec
      Rafael Guterres Jeffman authored
      Move Azure scripts to infra directory, as only roles and modules test
      playbooks should exist in the tests directory.
      77c34aec
    • Rafael Guterres Jeffman's avatar
      Remove molecule dependencies · 5b33cb5e
      Rafael Guterres Jeffman authored
      For some time now, we had some issues with molecule when building test
      images for ansible-freeipa, and replaced the image creation with custom
      build scripts that use commom container tools (like Dockerfiles and the
      build command).
      
      As there's no more tasks that require the use of molecule, this patch
      removes the last bits used by it, and fixes documentation and lint
      scripts and configuration.
      5b33cb5e
    • Rafael Guterres Jeffman's avatar
      upstream CI: Allow podman options when creating containers · c979843b
      Rafael Guterres Jeffman authored
      When using containers to test ansible-freeipa there's a need to deal
      with 'podman' the development environment and the Azure environment. In
      the Azure environment, with Ubuntu hosts, using 'cap-add' does not allow
      FreeIPA to be installed on the containers, and they need to be executed
      with privileged mode. On the other hand, on development environments,
      such as recent Fedora hosts, there's no need to run the container with
      extra privileges.
      
      This patch modifies the utility function 'container_create' to allow the
      usage of key-value argumes such as "cpus=4" and "privileged", that will
      be used in the container creation.
      
      The currently available options are "privileged", "cpus", "memory" and
      "hostname". By default "cpus=2" and "hostname=ipaserver.test.local".
      
      Also, too make the image build script more self-contained, if the
      required Ansible collections are not installed, they will be temporarily
      installed so that the image can be built.
      c979843b
  12. Oct 30, 2024
  13. Oct 14, 2024
  14. Oct 11, 2024
  15. Oct 09, 2024
Loading