Skip to content
  1. Feb 07, 2024
    • Thomas Woerner's avatar
      ipaclient_setup_automount: Only return changed if there was a change · 0d1f8b53
      Thomas Woerner authored
      The returned changed state was always True. changed is now only True if
      automount_location is set and configure_automount was called.
      0d1f8b53
    • Thomas Woerner's avatar
      ipaclient_setup_automount with new install states · 0a468d32
      Thomas Woerner authored
      This is "Fix ipa-client-automount install/uninstall with new install
      states" https://github.com/freeipa/freeipa/pull/7100 for ansible-freeipa:
      
      Issue 8384 introduced a new installation state for the statestore
      to identify when client/server installation is completely finished
      rather than relying on has_files().
      
      The problem is that ipa-client-automount may be called during
      ipa-client-install and since installation is not complete at that
      point the automount install was failing with "IPA client not
      configured".
      
      Add a new state, 'automount', to designate that automount installation
      is in process. If check_client_configuration() fails it checks to
      see if [installation] automount is True. If so it continues with the
      installation.
      
      This also addresses an issue where the filestore and statestore are
      shared between the client and automount installers but the client
      wasn't refreshing state after automount completed. This resulted in
      an incomplete state and index file of backed-up files which caused
      files to not be restored on uninstall and the state file to be
      orphaned.
      
      Fixes: https://pagure.io/freeipa/issue/9487
      0a468d32
  2. Jan 25, 2024
  3. Jan 23, 2024
    • Rafael Guterres Jeffman's avatar
      ipasudorule: Allow setting groups for runasuser. · 1fde1764
      Rafael Guterres Jeffman authored
      On IPA CLI sudorule-add/del-runasuser accept 'group' as a parameter,
      and this option was missing in ansible-freeipa ipasudorule module.
      
      This patch adds a new parameter 'runasuser_group' to allow setting
      Groups of RunAs Users, as allowed by CLI and WebUI.
      
      New example playboks can be found at:
      
          playbooks/sudorule/ensure-sudorule-runasusesr-group-is-absent.yml
          playbooks/sudorule/ensure-sudorule-runasusesr-group-is-present.yml
      1fde1764
  4. Dec 21, 2023
  5. Dec 20, 2023
  6. Dec 19, 2023
  7. Dec 15, 2023
  8. Dec 14, 2023
  9. Dec 08, 2023
  10. Dec 07, 2023
  11. Dec 06, 2023
    • Rafael Guterres Jeffman's avatar
      Bump minimum ansible-lint version to 6.22 · d2e0cad9
      Rafael Guterres Jeffman authored
      By the first quarter of 2024, all collections must pass ansible-lint
      tests run with version 6.22.x. This PR ensure that all ansible-freeipa
      tests depending on ansible-lint use a valid version of it.
      d2e0cad9
    • Rafael Guterres Jeffman's avatar
      Merge pull request #1186 from... · 9c735939
      Rafael Guterres Jeffman authored
      Merge pull request #1186 from t-woerner/test_host_random_conditional_statements_no_jinja2_templating
      
      test_host_random: No jinja2 templating in conditional statements
      9c735939
    • Rafael Guterres Jeffman's avatar
      ipaclient: Fix OTP error reporting · 22214daf
      Rafael Guterres Jeffman authored
      When deploying an IPA client with ipaclient, if an error occured while
      getting an OTP, no error message is logged, as the task that logs the
      error is not excuted due to the previous taks failure.
      
      By adding a 'rescue' section to the code block and moving the error
      reporting to this new section, we ensure that the proper error messages
      will be reported.
      22214daf
    • Thomas Woerner's avatar
      test_host_random: No jinja2 templating in conditional statements · 2c9ee7d8
      Thomas Woerner authored
      With ansible-core 2.14.12 using jinja2 templating in conditional
      statements with ansible_facts['fqdn'] is marked as unsafe and results in
      a failure.
      
      The issues with using jinja2 templating in conditional statements for
      asserts have been solved and a new server_fqdn fact has been added for
      ansible_facts['fqdn'].
      2c9ee7d8
  12. Dec 05, 2023
    • Thomas Woerner's avatar
    • Thomas Woerner's avatar
      ipaidp: Fix validation and reset of parameters · ff084fbd
      Thomas Woerner authored
      The uri parameters auth_uri, dev_auth_uri, token_uri, userinfo_uri and
      keys_uri have not been validated before. Also the base_url was not
      normalized. The auth_uri, dev_auth_uri, token_uri and userinfo_uri need
      to be set for new entries, but might be empty or empty string for reset
      or updates.
      
      The ipaidpclientsecret needs to be decoded from binary string in
      find_idp result to not trigger no change ipd_mod calls.
      
      The code for validate_uri and base_url normalization has been copied
      from the ipaserver idp plugin.
      
      ansible_freeipa_module:
      urlparse from urllib.parse with a fallback to six.moves.urllib.parse is
      imported and also exported. urlparse is needed for validate_uri in ipaidp
      module.
      
      Resolves: RHEL-17954, RHEL-17955, RHEL-17957 and RHEL-17958
      ff084fbd
  13. Nov 28, 2023
  14. Nov 24, 2023