- May 27, 2024
-
-
Rafael Guterres Jeffman authored
utils/build-galaxy-release.sh: Fix unary operator expected (v2)
-
Thomas Woerner authored
This fixes a bad tests if offline is not set: utils/build-galaxy-release.sh: line 130: [: -ne: unary operator expected Fixes f17f83d6
-
Thomas Woerner authored
Bump linter tools versions an fix linter errors
-
- May 23, 2024
-
-
Rafael Guterres Jeffman authored
Use batch command internally
-
- May 22, 2024
-
-
Rafael Guterres Jeffman authored
-
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.
-
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.
-
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.
-
Rafael Guterres Jeffman authored
Bump version of ansible-lint, Flake8, Pylint and yamllint to newer versions as used in Ansible tests.
-
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.
-
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.
-
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.
-
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.
-
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)
-
- May 21, 2024
-
-
Rafael Guterres Jeffman authored
README-group.md: Add missing ":" in multi rename example
-
Rafael Guterres Jeffman authored
README-user.md: Fix state for user rename in example playbook
-
Rafael Guterres Jeffman authored
ipahost: Fix idempotency issues
-
- May 16, 2024
-
-
Thomas Woerner authored
The name tag in the multi rename example is was missing a ":".
-
Thomas Woerner authored
A user rename requires "state: renamed". This has been wrong in the example.
-
Rafael Guterres Jeffman authored
ipaserver_prepare: Properly create IPA_DEFAULT_CONF
-
- May 14, 2024
-
-
Rafael Guterres Jeffman authored
New inventory plugin
-
Rafael Guterres Jeffman authored
ipauser: Fix idempotency issues for members
-
Thomas Woerner authored
This fixes a bad tests if offline is not set: utils/build-galaxy-release.sh: line 130: [: -ne: unary operator expected
-
Thomas Woerner authored
The inventory plugin compiles a dynamic inventory from IPA domain, filters servers by role(s). Usage: Create yml file, for example `freeipa.yml`: --- plugin: freeipa server: server.ipa.local ipaadmin_password: SomeADMINpassword verify: ca.crt Get compiled inventory: ansible-inventory -i freeipa.yml --graph
-
- May 13, 2024
-
-
Rafael Guterres Jeffman authored
ipaservice: Do not set continue to None for service_del
-
Thomas Woerner authored
This simplified the result_handler and also made the exception_handler superfluous.
-
Thomas Woerner authored
normalize_sshpubkey is imported from ipalib.util and also added to __all__ for use in modules.
-
Thomas Woerner authored
delete_continue defaults to None. The use of continue: None is resulting in an error with the batch command. Therefore only set continue if it is not None.
-
Thomas Woerner authored
These are manager, principal, certificate and certmapdata. The result_handler function has been adapted and the exception_handler function has been removed. A new function has been added: convert_certificate
-
- Mar 28, 2024
-
-
Rafael Guterres Jeffman authored
ipalib.install.kinit moved to ipalib
-
Rafael Guterres Jeffman authored
ipaclient_configure_dns_resolver: Return proper changed state
-
- Mar 27, 2024
-
-
Thomas Woerner authored
FreeIPA PR https://github.com/freeipa/freeipa/pull/7286 moved ipalib.install.kinit to ipalib. It is first tried to import kinit_keytab and kinit_password from ipalib.kinit, then ipalib.install.kinit and finally in some cases where support for IPA 4.5.0 is needed still also ipapython.ipautil. Related: https://github.com/freeipa/freeipa/pull/7286
-
- Mar 26, 2024
-
-
Rafael Guterres Jeffman authored
utils/build-galaxy-release.sh: Fix offline default value
-
Thomas Woerner authored
The offline default value was 0, which resulted in 0 for ${offline/1/--offline}. This broke the ansible-galaxy collection install call.
-
- Mar 21, 2024
-
-
Thomas Woerner authored
The changed state returned from ipaclient_configure_dns_resolver was always True. The internal functions (copies from FreeIPA code) have been fixed to return a changed state. Fixes: #1217 (ipaclient: Configure DNS resolver always reports as changed)
-
Rafael Guterres Jeffman authored
utils/build-galaxy-release.sh: Enable offline generation for rpm
-
- Mar 20, 2024
-
-
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
-
- Mar 14, 2024
-
-
Rafael Guterres Jeffman authored
ipaserver: Run custodia setup only once
-
- Mar 13, 2024
-
-
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.
-
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.
-