Skip to content
  1. Sep 09, 2021
  2. Sep 06, 2021
  3. Sep 05, 2021
  4. Sep 03, 2021
  5. Sep 02, 2021
    • Thomas Woerner's avatar
      config: Use IPAAnsibleModule class · ed3dd3ea
      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.
      ed3dd3ea
    • Thomas Woerner's avatar
      ansible_freeipa_module: Cleanup of unused functions and attributes · 3e98ed54
      Thomas Woerner authored
      Moved ipamodule_base_spec into IPAAnsibleModule.
      This simplifies to add addtitional base vars to derived classes without
      the need to dusplicae the code to extend argument_spec.
      
      Removed execute_api_command.
      This is not used anymore.
      
      Removed get_ipamodule_base_vars.
      This is not used anymore.
      
      Removed self.ipaadmin_* and self.ccache_* from IPAAnsibleModule.__init__
      These are not used and therefore can be removed.
      3e98ed54
    • Thomas Woerner's avatar
      ansible_freeipa_module: New execute_ipa_commands in IPAAnsibleModule · 55341a03
      Thomas Woerner authored
      execute_ipa_commands executes IPA API commands from the given command
      list. With the handle_result and handle_result_user_args it is possible
      to have a handling of the result return by the ipa commands for example
      to return passwords.
      
      Parameters
      
          commands: list of string tuple
              The list of commands in the form (name, command and args)
              For commands that do not require a 'name', None needs be
              used.
          handle_result: function
              The user function to handle results of the single commands
          handle_result_user_args: dict (user args mapping)
              The user args to pass to handle_result function
      
      Example (ipauser module)
      
          def handle_result(result, command, name, args, exit_args):
              if "random" in args and command in ["user_add", "user_mod"] \
                 and "randompassword" in result["result"]:
                  exit_args.setdefault(name, {})["randompassword"] = \
                      result["result"]["randompassword"]
      
          exit_args = {}
          changed = module.execute_ipa_commands(commands, handle_result,
                                                exit_args=exit_args)
      
          if len(names) == 1:
              ansible_module.exit_json(changed=changed,
                                       user=exit_args[names[0]])
          else:
              ansible_module.exit_json(changed=changed, user=exit_args)
      55341a03
    • Rafael Guterres Jeffman's avatar
      automountlocation: Use IPAAnsibleModule class · 706e1f5b
      Rafael Guterres Jeffman authored
      Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment.
      706e1f5b
    • Rafael Guterres Jeffman's avatar
      dnszone: Use IPAAnsibleModule class. · 21a48d59
      Rafael Guterres Jeffman authored
      Use IPAAnsibleModule methods and ipamodule_base_docs ducument fragment.
      21a48d59
    • Rafael Guterres Jeffman's avatar
      Make IPAAnsibleModule base class of FreeIPABaseModule. · 0c430d0a
      Rafael Guterres Jeffman authored
      By making IPAAnsibleModule the base class of FreeIPABaseModule, instead
      of AnsibleModule, some methods on FreeIPABaseModule can be removed and
      suport for commom parameters in modules using the older class can use
      the same commom parameters (ipaadmin_principal and ipaadmin_password)
      as the other parameters. This will also allow easier deprecation of
      FreeIPABaseModule, which is hard to maintain.
      
      To be able to use IPAAnsibleModule as the base class, it was moved
      within the file, to position before FreeIPABaseModule declaration.
      
      This patch also modifies IPAAnsibleModule by:
      
          * removing usage of `self` in methods not requiring it, turning
            the methods into @statimethod;
      
          * adding comments to all the methods in IPAAnsibleModule, which
            makes it easier to understand what the individual methods do,
            and what their parameters represent.
      0c430d0a
    • 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
    • Thomas Woerner's avatar
      Merge pull request #600 from rjeffman/iparole_add_new_name · d86a2b83
      Thomas Woerner authored
      iparole: Add 'new_name' as an alias to 'rename'.
      d86a2b83
    • Thomas Woerner's avatar
      Merge pull request #603 from rjeffman/template_tests_no_become · f43d7a00
      Thomas Woerner authored
      templates: Use `become: no` in tests by default.
      f43d7a00
  6. Sep 01, 2021