Skip to content
  1. May 27, 2024
  2. May 23, 2024
  3. May 22, 2024
    • Rafael Guterres Jeffman's avatar
    • Rafael Guterres Jeffman's avatar
      pylint: ensure variables are initialized · 52241fe2
      Rafael Guterres Jeffman authored
      pylint doesn't know that some functions may terminate execution, like,
      AnsibleModule's fail_json, and assume that, depending on the code path,
      some variables may not be initialized when used.
      
      This change ensure that variables are always initialized independent of
      the code path.
      52241fe2
    • Rafael Guterres Jeffman's avatar
      pylint: Ignore usage of 'unicode' before assignment · f53ca3ad
      Rafael Guterres Jeffman authored
      New versions of pylint ignore Python 2 functions and types, evaluating
      'unicode' as "undefined". ansible-freeipa will always define 'unicode'
      when running under Python 3, and it is always defined under Python 2.
      
      This patch fixes these false positives.
      f53ca3ad
    • Rafael Guterres Jeffman's avatar
      upstream ci: Update Github actions · 60905ef5
      Rafael Guterres Jeffman authored
      Github actions checkout v3.1.0 and setup-python v4.3.0 use deprecated
      Node.js 16.
      
      Bumping version to checkout v4.1.1 and setup-python v5.1.0 fixes the
      workflows, as both use the recommended Node.js 20.
      
      The checkout depth has been set to 1 (shallow copy) for all tasks that
      do not require git history to be available.
      60905ef5
    • Rafael Guterres Jeffman's avatar
      lint tools: bump code verification tools versions · 0d48da06
      Rafael Guterres Jeffman authored
      Bump version of ansible-lint, Flake8, Pylint and yamllint to newer
      versions as used in Ansible tests.
      0d48da06
    • Thomas Woerner's avatar
      ipahost: Enable batch command with keeponly · 5cdbcf64
      Thomas Woerner authored
      The use of the batch command is enabled for execute_ipa_commands.
      
      Additionally keeponly is set to ["randompassword"] as this is the only
      parameter that is used from the data returned from the commands.
      5cdbcf64
    • Thomas Woerner's avatar
      ipagroup: Enable batch command use with keeponly · 08b0fc02
      Thomas Woerner authored
      The use of the batch command is enabled for execute_ipa_commands.
      
      Additionally keeponly is set to [] as nothing is used from the data returned
      from the commands.
      08b0fc02
    • Thomas Woerner's avatar
      ipaservice: Enable batch command use with keeponly · 6cec03eb
      Thomas Woerner authored
      The use of the batch command is enabled for execute_ipa_commands.
      
      Additionally keeponly is set to [] as nothing is used from the data returned
      from the commands.
      6cec03eb
    • Thomas Woerner's avatar
      ipauser: Enable batch command use with keeponly · 65a1fd78
      Thomas Woerner authored
      The use of the batch command is enabled for execute_ipa_commands.
      
      Additionally keeponly is set to ["randompassword"] as this is the only
      parameter that is used from the data returned from the commands.
      65a1fd78
    • Thomas Woerner's avatar
      IPAAnsibleModule: Add support for batch command in execute_ipa_commands · bcb6a682
      Thomas Woerner authored
      The method execute_ipa_commands has been extended to handle multi
      commands with the batch command.
      
      New constants for execute_ipa_commands debugging:
      
          DEBUG_COMMAND_ALL = 0b1111
          DEBUG_COMMAND_LIST = 0b0001
              Print the while command list
          DEBUG_COMMAND_COUNT = 0b0010
              Print the command number
          DEBUG_COMMAND_BATCH = 0b0100
              Print information about the batch slice size and currently executed
              batch slice
      
      New parameters have been added to execute_ipa_commands:
      
          batch: bool
              Enable batch command use to speed up processing
          batch_slice_size: integer
              Maximum mumber of commands processed in a slice with the batch
              command
          keeponly: list of string
              The attributes to keep in the results returned.
              Default: None (Keep all)
          debug: integer
              Enable debug output for the exection using DEBUG_COMMAND_*
      
      Batch mode can be enabled within the module with setting batch to True
      for execute_ipa_commands.
      
      Fixes: #1128 (batch command support)
      bcb6a682
  4. May 21, 2024
  5. May 16, 2024
  6. May 14, 2024
  7. May 13, 2024
  8. Mar 28, 2024
  9. Mar 27, 2024
  10. Mar 26, 2024
  11. Mar 21, 2024
  12. Mar 20, 2024
    • Thomas Woerner's avatar
      utils/build-galaxy-release.sh: Enable offline generation for rpm · fe16df8a
      Thomas Woerner authored
      Two new options have been added to enable the offline build within rpm:
      
          -o <A.B.C>  Build offline without using git, using version A.B.C
                      Also enables -a
          -p <path>   Installation the generated collection in the path, the
                      ansible_collections sub directory will be created and will
                      contain the collection: ansible_collections/<namespace>/<name>
                      Also enables -i
      
      The usage text has been fixed also for specifying namespace and name.
      The collection variable has been renamed to name.
      
      Example usage:
      
          utils/build-galaxy-release.sh -o 1.12.1 \
              -p %{buildroot}%{_datadir}/ansible/collections \
              freeipa ansible_freeipa
      fe16df8a
  13. Mar 14, 2024
  14. Mar 13, 2024
    • Thomas Woerner's avatar
      ipaserver_prepare: Properly create IPA_DEFAULT_CONF · 8fa3daec
      Thomas Woerner authored
      Use IPAChangeConf and realm_to_ldapi_uri to create IPA_DEFAULT_CONF.
      
      With realm_to_ldapi_uri the ldap_uri is correctly using /run instead of
      /var/run.
      
      Before IPA_DEFAULT_CONF was created using file operations.
      8fa3daec
    • Thomas Woerner's avatar
      ipaserver: Run custodia setup only once · 0cad1fa8
      Thomas Woerner authored
      The custodia setup is executed twice. At first in
      ipaserver_setup_custodia and then additionally in ipaserver_setup_ca.
      
      The custodia setup code in ipaserver_setup_ca.py has been adapted to fit
      the code in ipaserver_setup_custodia.py.
      
      The extra Setup custodia step in the server roles has been removed
      together with ipaserver_setup_custodia.py.
      0cad1fa8
  15. Mar 11, 2024
Loading