Skip to content
  1. May 26, 2021
    • Mark Hahl's avatar
      New automember management module · 0e0bdf1f
      Mark Hahl authored
          There is a new automember management module placed in the plugins folder:
      
              plugins/modules/ipaautomember.py
      
          The automember module allows to ensure presence or absence of automember rules
          and manage automember rule conditions.
      
          Here is the documentation for the module:
      
              README-automember.md
      
          New example playbooks have been added:
      
              playbooks/automember/automember-group-absent.yml
              playbooks/automember/automember-group-present.yml
              playbooks/automember/automember-hostgroup-absent.yml
              playbooks/automember/automember-hostgroup-present.yml
              playbooks/automember/automember-hostgroup-rule-absent.yml
              playbooks/automember/automember-hostgroup-rule-present.yml
      
          New tests for the module:
      
              tests/automember/test_automember.yml
      0e0bdf1f
    • chrisp's avatar
      fix minor documentation typos in sudo modules · f51107e8
      chrisp authored
      f51107e8
  2. May 25, 2021
  3. May 24, 2021
  4. May 21, 2021
    • Rafael Guterres Jeffman's avatar
      ipaservice: Avoid clearing auth-ind when it is empty. · 7e826fce
      Rafael Guterres Jeffman authored
      When `auth-ind` was empty, and it was set to be cleared, it might have
      triggered an uncessary change. This change add a test so that `auth-ind`
      is set only if needed.
      7e826fce
    • Rafael Guterres Jeffman's avatar
      ipaservice: Handle smb services as other services. · debdef19
      Rafael Guterres Jeffman authored
      In current implementation, when using `smb: yes`, only a small subset
      of the attributes can be used in the playbook. This happened due the
      use of `service_add_smb`, which adds a new service and does not modify
      an existing one, and not coping with attributes not supported by this
      IPA API call.
      
      The implementation was modified so that a service with `smb: true` is
      treated like any other service, which, in effect, simplified and fixed
      service search, and allowed for the use of the same attributes as with
      any service. Although simplified, when using `smb: true` an extra
      query is done against the LDAP server, as a second `service_show` is
      performed.
      
      Tests have been updated to reflect the new imprlementation.
      debdef19
    • Thomas Woerner's avatar
      dnszone: Fix no modifications to be performed for serial · 445705fb
      Thomas Woerner authored
      A dnszone_mod call is always made to set the serial for a zone even if
      this serial is set already.
      
      A check is added to make sure that the serial is only set with
      dnszone_mod if there is no serial set or if the serial is different.
      445705fb
  5. May 20, 2021
    • Thomas Woerner's avatar
      host: Fix DNS resource record not found error · c8eb6d74
      Thomas Woerner authored
      The "DNS resource record not found" error occurs when a host arecord
      or aaaarecord member is ensured to be absent and no dnsrecord entry
      for the host exists.
      
      The arecord or aaaarecord item are removed from dnsrecord_args if the
      record is not defined in res_find_dnsrecord.
      c8eb6d74
    • Thomas Woerner's avatar
      ipasudorule: Fix category reset for idempotency · 34bd2562
      Thomas Woerner authored
      A repeated category reset of usercategory, hostcategory, cmdcaterory,
      runasusercategory and hostcategory is resulting in the error
      "no modifications to be performed".
      
      The empty categories are now removed from the args if the category is
      not set in the sudorule.
      34bd2562
  6. May 18, 2021
    • Thomas Woerner's avatar
      New server management module · 16795b8b
      Thomas Woerner authored
      There is a new server management module placed in the plugins folder:
      
          plugins/modules/ipaserver.py
      
      The server module allows to ensure presence and absence of servers. The
      module requires an existing server, the deployment of a new server can
      not be done with the module.
      
      DNSName has been added to ansible_freeipa_module in plugins/module_utils
      as this is used for locations.
      
      Here is the documentation for the module:
      
          README-server.md
      
      New example playbooks have been added:
      
          playbooks/server/server-absent-continue.yml
          playbooks/server/server-absent-force.yml
          playbooks/server/server-absent-ignore_last_of_role.yml
          playbooks/server/server-absent-ignore_topology_disconnect.yml
          playbooks/server/server-absent.yml
          playbooks/server/server-hidden.yml
          playbooks/server/server-location.yml
          playbooks/server/server-no-location.yml
          playbooks/server/server-no-service-weight.yml
          playbooks/server/server-not-hidden.yml
          playbooks/server/server-present.yml
          playbooks/server/server-service-weight.yml
      
      New tests for the module:
      
          tests/server/test_server.yml
      
      Change in module_utils/ansible_freeipa_module:
      
          DNSName is imported from ipapython.dnsutil and also added to __all__
      16795b8b
  7. May 11, 2021
  8. May 05, 2021
    • Rafael Guterres Jeffman's avatar
      Fix creation of privilege with permissions. · f4a8cf4e
      Rafael Guterres Jeffman authored
      Module was raising exceptions when trying to create a new privilege
      with permissions. This change fixes the behavior and ensuure
      idempotence with trying to create a privilege with the same values.
      
      Tests for this behavior have been appended to:
      
          tests/privilege/test_privilege.yml
      f4a8cf4e
    • Rafael Guterres Jeffman's avatar
      Fix compare_args_ipa when passing None as parameter. · c17e9fe2
      Rafael Guterres Jeffman authored
      There were no test for the arguments of compare_args_ipa() to check
      if they were `None`, and they were used in contexts where `None`
      would raise exceptions.
      
      A test was added to return `False` if only one of the parameters is
      `None`, and `True` if both are None.
      c17e9fe2
  9. May 04, 2021
    • Rafael Guterres Jeffman's avatar
      Force plugins to execute using LANGUAGE='C'. · 09942c3d
      Rafael Guterres Jeffman authored
      IPA translates exception messages and Ansible uses controller's
      language to execute plugins on target hosts, and since ansible-freeipa
      uses Exceptions messages to detect some errors and/or states, using any
      language that has a translation for the required messages may cause the
      plugin to misbehave.
      
      This patch modifies ansible_freeipa_module in plugin/module_utils to
      force the use of "C" as the language by setting the environment variable
      LANGUAGE.
      
      Tests were added to verify the correct behavior:
      
          tests/environment/test_locale.yml
      
      The first test will fail, if ansible_freeipa_module is not patched, with
      the message:
      
         host_show failed: nonexistent: host nicht gefunden
      
      This issue is not present if the language selected does not provide
      a translation for the eror message.
      
      This patch does not fix encoding issues that might occur in certain
      releases (e.g.: CentOS 8.3).
      
      Fix #516
      09942c3d
  10. Feb 16, 2021
  11. Jan 26, 2021
    • Eric Nothen's avatar
      ipasudorule: Fix names of member objects. · 2cc4c27f
      Eric Nothen authored
      Fixed names of sudorule member objects, as they did not match the names provided by IdM.
      
      From:			To:
      member_host		memberhost_host
      member_hostgroup	memberhost_hostgroup
      member_user		memberuser_user
      member_group		memberuser_group
      
      Fixes: #500
      2cc4c27f
Loading