Skip to content
  1. Sep 02, 2021
    • Thomas Woerner's avatar
      host: Use IPAAnsibleModule class · d356fa42
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      d356fa42
    • Thomas Woerner's avatar
      user: Use IPAAnsibleModule class · c2df7be2
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      c2df7be2
    • Thomas Woerner's avatar
      trust: Use IPAAnsibleModule class · c4fbd0d5
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      c4fbd0d5
    • Thomas Woerner's avatar
      sudorule: Use IPAAnsibleModule class · cb48d4b8
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      cb48d4b8
    • Thomas Woerner's avatar
      sudocmd: Use IPAAnsibleModule class · 7864adff
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      7864adff
    • Thomas Woerner's avatar
      sudocmdgroup: Use IPAAnsibleModule class · 09264767
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      09264767
    • Thomas Woerner's avatar
      service: Use IPAAnsibleModule class · 748f05d3
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      748f05d3
    • Thomas Woerner's avatar
      server: Use IPAAnsibleModule class · ab6097d1
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      ab6097d1
    • Thomas Woerner's avatar
      selfservice: Use IPAAnsibleModule class · 325ffb7b
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      325ffb7b
    • Thomas Woerner's avatar
      role: Use IPAAnsibleModule class · 954ae982
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      954ae982
    • Thomas Woerner's avatar
      privilege: Use IPAAnsibleModule class · ba72bd02
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      ba72bd02
    • Thomas Woerner's avatar
      permission: Use IPAAnsibleModule class · ce00f32d
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      ce00f32d
    • Thomas Woerner's avatar
      hostgroup: Use IPAAnsibleModule class · 91d8f5a6
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      91d8f5a6
    • Thomas Woerner's avatar
      hbacsvcgroup: Use IPAAnsibleModule class · 9d4572be
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      9d4572be
    • Thomas Woerner's avatar
      hbacsvc: Use IPAAnsibleModule class · 7d2bdd71
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      7d2bdd71
    • Thomas Woerner's avatar
      hbacrule: Use IPAAnsibleModule class · f87520d9
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      f87520d9
    • Thomas Woerner's avatar
      group: Use IPAAnsibleModule class · 31ee4f9b
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      31ee4f9b
    • Thomas Woerner's avatar
      dnsrecord: Use IPAAnsibleModule class · 7318302f
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      7318302f
    • Thomas Woerner's avatar
      forwardzone: Use IPAAnsibleModule class · a8045551
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      a8045551
    • Thomas Woerner's avatar
      dnsconfig: Use IPAAnsibleModule class · 97b47cc8
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      97b47cc8
    • Thomas Woerner's avatar
      delegation: Use IPAAnsibleModule class · c634cfd5
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      c634cfd5
    • Thomas Woerner's avatar
      vault: Use IPAAnsibleModule class · fc218878
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      fc218878
  2. Sep 01, 2021
    • Thomas Woerner's avatar
      topologysuffix: Use IPAAnsibleModule class · af0b782f
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      af0b782f
    • Thomas Woerner's avatar
      topologysegment: Use IPAAnsibleModule class · 5986de85
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      5986de85
    • Thomas Woerner's avatar
      pwpolicy: Use IPAAnsibleModule class · 683d1c97
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      683d1c97
    • Thomas Woerner's avatar
      automember: Use IPAAnsibleModule class · 7ff49265
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      7ff49265
    • Thomas Woerner's avatar
      location: Use IPAAnsibleModule class · 5636742b
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      5636742b
    • Thomas Woerner's avatar
      ansible_freeipa_module: New IPAAnsibleModule class · d01c42d7
      Thomas Woerner authored
      This class is an extended version of the Ansible Module that provides
      IPA specific methods to simplify module generation.
      
      Simple example:
      
          from ansible.module_utils.ansible_freeipa_module import \
              IPAAnsibleModule
      
          def main():
              ansible_module = IPAAnsibleModule(
                  argument_spec=dict(
                        name=dict(type="str", aliases=["cn"], default=None),
                        state=dict(type="str", default="present",
                                   choices=["present", "absent"]),
                  ),
              )
      
              # Get parameters
              name = ansible_module.params_get("name")
              state = ansible_module.params_get("state")
      
              # Connect to IPA API
              with ansible_module.ipa_connect():
      
                  # Execute command
                  if state == "present":
                      ansible_module.ipa_command(["command_add", name, {}])
                  else:
                      ansible_module.ipa_command(["command_del", name, {}])
      
              # Done
      
              ansible_module.exit_json(changed=True)
      
          if __name__ == "__main__":
              main()
      d01c42d7
    • Rafael Guterres Jeffman's avatar
      pylint: Upgrade to version 2.10.2. · 928540fa
      Rafael Guterres Jeffman authored
      This PR sets pylint to version 2.10.2 in all linter actions, and
      fixes code in plugins so that this version new checks are either
      satisfied or ignored if needed.
      928540fa
  3. 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
  4. 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
  5. 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
  6. Jul 16, 2021
  7. 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
  8. 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
  9. Jul 08, 2021
  10. Jul 06, 2021
  11. May 27, 2021
Loading