Skip to content
  1. May 27, 2021
  2. 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
    • Thomas Woerner's avatar
      hostgroup: Reduce addition and deletion of members to changed only · 6e9f5250
      Thomas Woerner authored
      Use gen_add_list and gen_intersection_list for host, hostgroup,
      membermanager_user and membermanager_group member handling.
      
      The functions are used to reduce the add lists to the new entries
      only and the delete lists to the entries that are in the user and
      the show list result.
      
      This enables to remove the ignores for "already a member" and
      "not a member" errors..
      6e9f5250
    • Thomas Woerner's avatar
      group: Reduce addition and deletion of members to changed only · 0a604fca
      Thomas Woerner authored
      Use gen_add_list and gen_intersection_list for user, group, service,
      externalmember, membermanager_user and membermanager_group member
      handling.
      The functions are used to reduce the add lists to the new entries
      only and the delete lists to the entries that are in the user and
      the show list result.
      
      This enables to remove the ignores for "already a member" and
      "not a member" errors..
      0a604fca
  3. May 25, 2021
  4. May 24, 2021
  5. 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
  6. 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
  7. 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
  8. May 11, 2021
  9. 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
Loading