Skip to content
  1. Sep 01, 2021
  2. Aug 24, 2021
    • Thomas Woerner's avatar
      New ipamodule_base_vars · 7a665bdb
      Thomas Woerner authored
      There are common parameters in all modules like ipaadmin_principal and
      ipaadmin_password. As this list of common parameters will be extended
      soon, there is a need to reduce the code and documentation duplicates.
      
      A ModuleDocFragment is added to provide the module documentation for the
      common parameters. This is used in the modules with
      extends_documentation_fragment.
      
      ansible_freeipa_module has additional ipamodule_base_spec and
      get_ipamodule_base_vars. ipamodule_base_spec extends argument_spec in
      the module and get_ipamodule_base_vars is used to return a dict
      containing the common parameters.
      7a665bdb
  3. Aug 23, 2021
    • Thomas Woerner's avatar
      sudorule: Reduce addition and deletion of members to changed only · 8561e0bb
      Thomas Woerner authored
      Use gen_add_list and gen_intersection_list for host, hostgroup, user,
      group, allow_sudocmd, allow_sudocmdgroup, deny_sudocmd, deny_sudocmdgroup,
      sudooption, runasuser, runasgroup and res_find 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..
      8561e0bb
  4. Aug 20, 2021
    • Thomas Woerner's avatar
      hbacrule: Create FQDN from single hostnames · b8488cb9
      Thomas Woerner authored
      Single hostnames can be used for hbacrule_add_host and will match fqdn
      in IPA internally. Simple host names have to be extended to be FQDN to
      be able to compare them for _host_add and _host_remove.
      
      Two new functions have been added to ansible_freeipa_module:
      
      - api_get_domain - Get the domain from the api
      - ensure_fqdn - Extend a single name with the domain
      
      This fixes #617 - hbacrule_add_host: already a member
      b8488cb9
  5. Jul 16, 2021
  6. Jul 14, 2021
    • chrisp's avatar
      New automountlocation module · 6a87db06
      chrisp authored
      There is a new automount location management module placed in the plugins folder:
      
      plugins/modules/ipaautomountlocation.py
      
      This module allows to ensure presence and absence of automount locations
      that act as containers for automount onjects in ipa.
      
      Here is the documentation for the module:
      
      README-automountlocation.md
      
      New example playbooks have been added:
      
      playbooks/automount/automount-location-absent.yml
      playbooks/automount/automount-location-present.yml
      
      New tests for the module:
      
      tests/automount/test_automountlocation.yml
      6a87db06
  7. Jul 13, 2021
    • Thomas Woerner's avatar
      automember: Verify condition keys · 382ee6ff
      Thomas Woerner authored
      The automember_add_condition and automember_remove_condition commands
      are not verifying condition keys in all cases. This is for example not
      done in the removal case if a condition is not part of the automember
      rule.
      
      For consistent behaviour this needs to be done in the automember module
      now. The condition keys are verified with the user and group aciattrs
      returned by the API command json_metadata now.
      
      Related: RHBZ#1976926
      382ee6ff
  8. Jul 08, 2021
  9. Jul 06, 2021
  10. May 27, 2021
  11. 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
  12. May 25, 2021
  13. May 24, 2021
  14. 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
Loading