- Sep 27, 2021
-
-
Rafael Guterres Jeffman authored
This patch adds a new fact `ipa_host_is_client`, available in the include task file `env_freeipa_facts.yml`. The variable `ipa_host_is_client` is set to TRUE if the client host is not an IPA server (primary or replica). It can be used if a test cannot be executed in a server, independent of the value set to `ipaapi_context`.
-
Rafael Guterres Jeffman authored
Modify templates to create the basic tests for `ipaapi_context: client`.
-
Rafael Guterres Jeffman authored
Add a new configuration variable, `ipaapi_context` to IPAAnsibleModule base specs, accepting only 'server' or 'client' values. By using this variable, an user can select the environment context in which the module will execute, server or client. This change will allow configuration of the server without requiring login access (e.g. `ssh`) to the server. The default behavior is to use a `server` context, but this behavior can be modified by the plugin, if it sets the `context` parameter when connecting to IPA API.
-
- Sep 26, 2021
-
-
Rafael Guterres Jeffman authored
ipaclient_setup_nss: Use proper nosssd_files list
-
- Sep 24, 2021
-
-
Thomas Woerner authored
ipaconfig: Prevent configuration issues due to test failure.
-
Thomas Woerner authored
ipaserver: Allow configuration of test server name.
-
- Sep 23, 2021
-
-
Thomas Woerner authored
ipaclient_setup_nss is using the nosssd_files dict if sssd is disabled with no_sssd. The nosssd_files dict is generated in ipaclient_test and used in ipaclient_setup_nss. So far ipaclient_setup_nss was using nosssd_files from ipaclient installer, which was always None.
-
- Sep 20, 2021
-
-
Rafael Guterres Jeffman authored
As the server name was hard coded, when running tests for ipasever module using a server not name as 'ipaserver', the tests would fail. This patch allows the configuration of the server name using the variable 'ipa_server_name', and if not provided, try to infer the name from the ansible_hostname variable, or, if not possible, defaults to 'ipaserver'. The same behavior is applied to 'ipasever_domain', with the default being 'ipa.test'.
-
- Sep 16, 2021
-
-
Rafael Guterres Jeffman authored
group: Fix nonposix, posix and external handling and conversions
-
Rafael Guterres Jeffman authored
Currently, if a test fails during execution of ipaconfig playbook tests, or if the failed task is the task reverting to the original configuration fails, the testing host might be left in a state that may cause other tests to fail due to the inconsistent configuration state. This patch ensures that if a test fails, a known configuration, the same as used is the default installation of FreeIPA used in upstream CI, is applied to the host, providing safe environment for testing.
-
Thomas Woerner authored
The nonposix, posix and external parameters need to be mutually exclusive. external was missing in this list. Only one of the three parameters can be used. external can not be set to no/false. This results in an error now. if nonposix is used, posix is set as not nonposix. The nonposix parameter is not used within the code anymore.. New tests have been added to tests the addition of users with for nonposix and posix groups. The tests for the external group is not active due to the need of an AD. Fixes: #528 (Error creating nonposix group)
-
Thomas Woerner authored
Use execute_ipa_commands for sudocmd plugins.
-
Thomas Woerner authored
config: Fix data returned from module.
-
- Sep 15, 2021
-
-
Rafael Guterres Jeffman authored
When retrieving IPA configuration using ipaconfig module, a few variables were not returning, and some data had the wrong data format. This patch fix both issues and apply some refactoring, as data was being retrieved from IPA API in different places using different methods.
-
Thomas Woerner authored
config: Remove unused code.
-
Thomas Woerner authored
CI: pin ansible-core version for ansible-doc-test.
-
- Sep 14, 2021
-
-
Rafael Guterres Jeffman authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Rafael Guterres Jeffman authored
Use gen_add_list and gen_intersection_list for sudocmd member handling, to reduce the add lists to only the new and del lists only to existing entries. This enables to remove the ignores for "already a member" and "not a member" errors.
-
Rafael Guterres Jeffman authored
Removed the definition of unused function 'gen_args()' from ipaconfig.
-
- Sep 13, 2021
-
-
Rafael Guterres Jeffman authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Rafael Guterres Jeffman authored
This patch adds ansible-core version to 2.11 when evaluating documentation with ansible-doc-test, so both 2.9 (ansible) and 2.11 (ansible-core) are covered when testing documentation, along with the latest Ansible version available.
-
- Sep 09, 2021
-
-
Thomas Woerner authored
Fix documentation and usage of IPAAnsibleModule
-
Rafael Guterres Jeffman authored
Fix parameters used to IPAAnsibleModule.ipa_command, as a singlo list was being used instead of a parameter list.
-
Rafael Guterres Jeffman authored
In the provided example for the class documentation, the parameters passed to the `ipa_command` method were wrong, as a single list was used instead of a parameter list.
-
Rafael Guterres Jeffman authored
Use execute ipa commands
-
- Sep 08, 2021
-
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-
Thomas Woerner authored
execute_ipa_commands replces the check mode exit, the loop over the generated commands and also in the member failure handling for modules with member support.
-