Skip to content
Snippets Groups Projects
  1. Jul 21, 2023
    • Rafael Guterres Jeffman's avatar
      ci: Increase verbosity for Ansible playbook runs · ed3a0d5a
      Rafael Guterres Jeffman authored
      Some test failures requires more information than just the playbook
      simple output. By increasing verbosity, the used parameters and the
      failed line will be visible in the test error report, making it easier
      to identify, reproduce and fix the issue.
      ed3a0d5a
  2. Jul 19, 2023
    • Rafael Guterres Jeffman's avatar
      ipauser: Support for External IdP attributes. · 6fa82236
      Rafael Guterres Jeffman authored
      Add support for 'idp' and 'idp_user_id' to ipauser plugin.
      
      FreeIPA 4.10.0 is required for both attributes.
      6fa82236
    • Rafael Guterres Jeffman's avatar
      ipaautomountmap: add support for indirect maps · a33fcf45
      Rafael Guterres Jeffman authored
      Indirect maps were not supported by ansible-freeipa ipaautomountmap.
      This patch adds support for adding indirect automount maps using the
      "parent" and "mount" parameters, if the map do not yet exist. An
      existing map cannot be modified.
      
      The "parent" parameter must match an existing automount map, and the
      "mount" parameter is required if "parent" is used.
      
      A new example playbook can be found at:
      
          playbooks/automount/automount-map-indirect-map.yml
      
      A new test playbook was added to test the feature:
      
          tests/automount/test_automountmap_indirect.yml
      a33fcf45
  3. Jul 14, 2023
  4. Jul 13, 2023
  5. Jul 12, 2023
  6. Jul 11, 2023
  7. Jul 10, 2023
    • Rafael Guterres Jeffman's avatar
      ipauser: Add support to modify GECOS field. · 9a8a1db3
      Rafael Guterres Jeffman authored
      This patch adds a new parameter to ipauser, 'gecos', which can be used
      to set the 'gecos' field of an IPA user. The default behavior of
      automatically set the GECOS field to "<first> <last>" is not modified,
      it is only possible to change the field to a custom value.
      
      No validation on the value provided is done, as it is with FreeIPA.
      9a8a1db3
  8. Jun 09, 2023
    • Rafael Guterres Jeffman's avatar
      upstream CI: Update ansible-core version · 51f64e43
      Rafael Guterres Jeffman authored
      ansible-core 2.15 has been released on May 15th, 2023, and version 2.12
      has reached EOL on May 22nd, 2023.
      
      This patch updates the ansible-core versions used on upstream CI tests
      to reflect Ansible's new releases.
      51f64e43
  9. Jun 07, 2023
    • Thomas Woerner's avatar
      pwpolicy test: Fix maxsequence test · d04a12e5
      Thomas Woerner authored
      The maxsequence test was testing maxrepeat. Therefore the typo reported
      with https://github.com/freeipa/ansible-freeipa/pull/1081 was never
      seen.
      
      The test has been fixed.
      d04a12e5
    • Sam Morris's avatar
      New certificate management module. · 87e1edf5
      Sam Morris authored
      There is a new certificate management module placed in the plugins
      folder:
      
          plugins/modules/ipacert.py
      
      The certificate module allows to request, revoke, release and retrieve
      certificates for users, hosts and services.
      
      Here is the documentation for the module:
      
          README-cert.md
      
      New example playbooks have been added:
      
          playbooks/cert/cert-hold.yml
          playbooks/cert/cert-release.yml
          playbooks/cert/cert-request-host.yml
          playbooks/cert/cert-request-service.yml
          playbooks/cert/cert-request-user.yml
          playbooks/cert/cert-retrieve.yml
          playbooks/cert/cert-revoke.yml
      
      New tests for the module can be found at:
      
          tests/cert/test_cert_client_context.yml
          tests/cert/test_cert_host.yml
          tests/cert/test_cert_service.yml
          tests/cert/test_cert_user.yml
      
      The module has been co-authored by Sam Morris (@yrro) and Rafael
      Guterres Jeffman (@rjeffman).
      87e1edf5
    • Thomas Woerner's avatar
      ipaservice: Updated and new tests for certificates and multi service handling · 09250cb2
      Thomas Woerner authored
      The tests test_services_absent.yml, test_services_present.yml and
      test_services_present_slice.yml have been updated to use in memory data
      for testing instead of loading json files. This made is simpler to use
      variables from the playbook for example for fqdn host names.
      
      New tests for certificates with and without trailing new lines have been
      added for single service and multiple service handling.
      09250cb2
  10. Jun 06, 2023
  11. May 15, 2023
    • Rafael Guterres Jeffman's avatar
      Upstream CI: Disable execution of pytest tests. · a1553241
      Rafael Guterres Jeffman authored
      The tests under 'tests/pytests' were a POC to bring tests that evaluate
      the result of playbook execution on the IPA environment. This is
      currently only implemented for dnszone tests, and similar test coverage
      is obtained with other tests.
      
      As there is an ongoing issue with Ansible's docker pluging
      ("the connection plugin 'docker' was not found"), which is stil under
      investigation, by removing the pytest tests we'll remove the consistent
      failures currently seen on upstream CI, and will not loose test
      coverage, specially if we take into account downstream tests.
      
      Also, a new version for the pytests will be available once multihost
      testing is implemented for upstream.
      a1553241
  12. May 08, 2023
  13. May 05, 2023
  14. Apr 27, 2023
  15. Apr 04, 2023
    • Denis Karpelevich's avatar
      [RFE] Allow multiple groups creation. · a649a8df
      Denis Karpelevich authored
      
      Adding an option `groups` to create multiple groups in one operation.
      Adding tests (present/absent/external/nonposix) with server and
      client context.
      Simple example of `groups` option:
      ```
      tasks:
      - name: Ensure 2 groups are present
        ipagroup:
          ipaadmin_password: SomeADMINpassword
          groups:
          - name: group1
          - name: group2
      ```
      
      Signed-off-by: default avatarDenis Karpelevich <dkarpele@redhat.com>
      a649a8df
  16. Apr 03, 2023
    • Thomas Woerner's avatar
      ipagroup: Fix ensuring external group group members (without trust-ad) · 80abf635
      Thomas Woerner authored
      Due to an API misbehaviour in FreeIPA, ipaexternalmembers need to be
      treated differently than other group members parameters. Even an empty
      array triggers all tests for external members, including the check for
      installed dcerpc bindings.
      
      Therefore ipagroup module has been changed to not set ipaexternalmember
      to an empty list if there are no external members to be added or
      removed.
      80abf635
  17. Mar 27, 2023
    • Thomas Woerner's avatar
      tests/config/test_config_sid: Mark tasks as noqa 503 · 049024bb
      Thomas Woerner authored
      The latest ansible-lint failes for the tasks that are using
      "when: sid_disabled.changed" with the error
      "Tasks that run when changed should likely be handlers.". As
      these tasks are tests and it would not make sense to use handlers here,
      the tasks have been marked as noqa 503.
      049024bb
  18. Mar 14, 2023
    • Thomas Woerner's avatar
      ipahost: Make return value depending on hosts parameter · 3f3e495a
      Thomas Woerner authored
      The way how randompasswords are returned by the ipahost module depends
      so far on the number of hosts that are handled by the module.
      
      This is unexpected if for example a json file is provided with the hosts
      parameter. As it might be unknown how many hosts are in the json file,
      this behaviour is unexpected. The return should not vary in this case.
      
      This chamge makes the return simply depend on the use of the hosts
      paramater. As soon as this parameter is used, the return will always be:
      
      "host": { "<the host>": { "randompassword": "<the host random password>" } }
      
      In the simply case with one host it will be still
      
      "host": { "randompassword": "<the host random password>" }
      
      This change for ipahost is related to the ipauser PR #1053.
      3f3e495a
  19. Mar 02, 2023
    • Thomas Woerner's avatar
      ipauser: Make return value depending on users parameter · 61caa578
      Thomas Woerner authored
      The way how randompasswords are returned by the ipauser module depends
      so far on the number of users that are handled by the module.
      
      This is unexpected if for example a json file is provided with the users
      parameter. As it might be unknown how many users are in the json file,
      this behaviour is unexpected. The return should not vary in this case.
      
      This chamge makes the return simply depend on the use of the users
      paramater. As soon as this parameter is used, the return will always be:
      
      "user": { "<the user>": { "randompassword": "<the user random password>" } }
      
      In the simply case with one user it will be still
      
      "user": { "randompassword": "<the user random password>" }
      
      Fixes: #1052 (ipauser should consitently return randompasswords when
                    used with users)
      61caa578
  20. Feb 21, 2023
  21. Jan 23, 2023
    • Rafael Guterres Jeffman's avatar
      upstream CI: increase Azure test timeout. · 683a8948
      Rafael Guterres Jeffman authored
      Due to DNS issues and the increase number of tests, the timeout setting
      used for upstream tests was being reached. As we still have room for
      running the tests using Azure infrastructure, this patch increases the
      timeout to 240 minutes (4h), per worker.
      683a8948
  22. Jan 19, 2023
  23. Jan 17, 2023
  24. Jan 12, 2023
  25. Jan 11, 2023
  26. Jan 04, 2023
  27. Dec 26, 2022
Loading