Skip to content
  1. Sep 14, 2023
  2. Sep 08, 2023
    • Rafael Guterres Jeffman's avatar
      roles: Bump minimum Ansible version to 2.13 · b5b22c3f
      Rafael Guterres Jeffman authored
      Currently, the minimum supported Ansible version is 2.13, and
      ansible-freeipa roles does not work with any version less than 2.9,
      altough ansible-freeipa documentation states that the minimum version to
      use is 2.8.
      
      This patch fixes documentation and roles metadata to require that the
      minimum Ansible version used is 2.13.
      b5b22c3f
  3. Aug 23, 2023
  4. Jul 19, 2023
    • Rafael Guterres Jeffman's avatar
      ipaserver: Update README with detailed Ubuntu support · ef0b7e80
      Rafael Guterres Jeffman authored
      Ubuntu does not have a FreeIPA server package since version 20.04. As
      versions 16.04 (Xenial Xerus) and 18.04 (Bionic Beaver) will be
      supported by Canonical until 2026 and 2028, repectively, we should keep
      existing support for both versions in the ipaserver, ipareplica and
      ipabackup roles until them.
      
      This patch changes documentation to reflect that only those versions are
      supported.
      ef0b7e80
  5. Jun 15, 2023
  6. Jun 05, 2023
  7. May 05, 2023
  8. Apr 05, 2023
  9. Apr 04, 2023
    • Rafael Guterres Jeffman's avatar
      roles/ipaserver: Allow deployments with random serial numbers · a4087a75
      Rafael Guterres Jeffman authored
      Since FreeIPA version 4.10 it is possible to deploy servers that use
      Random Serial Number v3 support for certificates.
      
      This patch exposes the 'random_serial_numbers' parameter, as
      'ipaserver_random_serial_numbers', allowing a user to have random serial
      numbers enabled for the domain.
      
      The use of random serial numbers is allowed on new installations only.
      a4087a75
  10. Mar 28, 2023
    • Thomas Woerner's avatar
      ipareplica/server: Enable removal from domain with undeployment · 476d9d50
      Thomas Woerner authored
      New variables have been added to ipareplica and ipaserver role to enable
      the removal from the domein with the undeployment.
      
      `ipaserver_remove_from_domain`
      This enables the removal of the server from the domain additionally to the
      undeployment.
      
      `ipaserver_remove_on_server`
      The value defines the server/replica in the domain that will to be used to
      remove the server/replica from the domain if
      `ipaserver_ignore_topology_disconnect` and `ipaserver_remove_from_domain`
      are enabled. Without the need to enable
      `ipaserver_ignore_topology_disconnect`, the value will be automatically
      detected using the replication agreements of the server/replica.
      
      For the replica role it is possible to use the server variables, but
      also the replica versions: `ipareplica_remove_from_domain` and
      `ipareplica_remove_on_server`.
      
      The already existing parameters `ipaserver_ignore_topology_disconnect` and
      `ipaserver_ignore_last_of_role` have been added to the README files for
      server and replica with descriptions. The same for the replica versions
      of the parameters.
      
      The ipareplica role is not calling the `ipa-server-install` anymore, it
      is instead using (including) the server role for the task.
      
      The new module `ipaserver_get_connected_server` has been added to the
      server role to be able to get a connected server using the replication
      agreements. This module is only used if
      `ipaserver_ignore_topology_disconnect` is not needed.
      476d9d50
  11. Mar 27, 2023
    • Thomas Woerner's avatar
      ipareplica/server: Always cleanup root IPA cache · ec03ad2b
      Thomas Woerner authored
      The cleanup of the root IPA cache was depending on the result of the
      ipaserver_enable_ipa and ipareplica_enable_ipa tasks. Instead of
      "when: something.changed" a handler should be used instead. As
      "/root/.ipa_cache" should be removed always (same in command line) the
      removal of the file has been moded into the always section and does not
      need a when anymore.
      ec03ad2b
  12. Mar 06, 2023
  13. Jan 12, 2023
  14. Jan 11, 2023
  15. Dec 20, 2022
    • Thomas Woerner's avatar
      ipaserver role: Use FQCN for ansible.builtin · 882d6051
      Thomas Woerner authored
      Use Fully Qualified Collection Name (FQCN) for ansible builtins. This is
      ansible.builtin.set_fact instead of set_fact for example and aplies for
      all actions that are part of ansible.builtin.
      
      All the replaced ansible.builtins:
        assert, command, copy, debug, fail, fetch, file, import_playbook,
        import_tasks, include_role, include_tasks, include_vars, package,
        set_fact, shell, slurp, stat, systemd
      882d6051
  16. Nov 14, 2022
    • Thomas Woerner's avatar
      ipaserver_test: Fix documentation sections and agument spec · 57c303d8
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      - `choices` needs to match `argument_spec`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      supports_check_mode is turned off as it is not supported.
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      57c303d8
    • Thomas Woerner's avatar
      ipaserver_setup_otpd: Fix documentation sections and agument spec · 165c3f06
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      165c3f06
    • Thomas Woerner's avatar
      ipaserver_setup_ntp: Fix documentation sections and agument spec · 300292c0
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      300292c0
    • Thomas Woerner's avatar
      ipaserver_setup_krb: Fix documentation sections and agument spec · 15454c3a
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      15454c3a
    • Thomas Woerner's avatar
      ipaserver_setup_kra: Fix documentation sections and agument spec · d962939a
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      d962939a
    • Thomas Woerner's avatar
      ipaserver_setup_http: Fix documentation sections and agument spec · 66dbfce0
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      66dbfce0
    • Thomas Woerner's avatar
      ipaserver_setup_ds: Fix documentation sections and agument spec · b22207d6
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      b22207d6
    • Thomas Woerner's avatar
      ipaserver_setup_dns: Fix documentation sections and agument spec · 1062e0fe
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      - `choices` needs to match `argument_spec`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      1062e0fe
    • Thomas Woerner's avatar
      ipaserver_setup_custodia: Fix documentation sections and agument spec · 1148476c
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      1148476c
    • Thomas Woerner's avatar
      ipaserver_setup_ca: Fix documentation sections and agument spec · 9eb07f70
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      9eb07f70
    • Thomas Woerner's avatar
      ipaserver_setup_adtrust: Fix documentation sections and agument spec · 0faf8c86
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      0faf8c86
    • Thomas Woerner's avatar
      ipaserver_set_ds_password: Fix documentation sections and agument spec · 9f3a2d42
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      9f3a2d42
    • Thomas Woerner's avatar
      ipaserver_prepare: Fix documentation sections and agument spec · c2475304
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      supports_check_mode is turned off as it is not supported.
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      c2475304
    • Thomas Woerner's avatar
      ipaserver_master_password: Fix documentation sections and agument spec · 2a817a98
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      RETURN section
      
      - `type: str` needs to be used for string parameters
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      supports_check_mode is turned off as it is not supported.
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      2a817a98
    • Thomas Woerner's avatar
      ipaserver_load_cache: Fix documentation sections and agument spec · 03e9dd3f
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      03e9dd3f
    • Thomas Woerner's avatar
      ipaserver_enable_ipa: Fix documentation sections and agument spec · 62d49e4e
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_server.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      62d49e4e
    • Thomas Woerner's avatar
      ansible_ipa_server: Fix ansible-test fake execution test findings · 446107f1
      Thomas Woerner authored
      All imports that are only available after installing IPA need to be in a
      try exception clause to be able to pass the fake execution test. The old
      workaround "if 'ansible.executor' in sys.modules:" is not working with
      this test anymore.
      
      If the imports can not be done, all used and needed attributes are
      defines with the value None.
      
      The new function check_imports has been added to fail with module.fail_json
      if an import exception occured and ANSIBLE_IPA_SERVER_MODULE_IMPORT_ERROR is
      not None. This function needs to be called in all modules.
      
      The `copyright` date is extended with `-2022`.
      446107f1
  17. Nov 11, 2022
    • Rafael Guterres Jeffman's avatar
      pylint: Modify certificate loader function definition. · 10b3f461
      Rafael Guterres Jeffman authored
      This patch modifies the way that the certificate load function is
      defined, depending on the dependency version, so that the resulting
      identifier for the function is always set and static analysis tools,
      like linters don't complain about variables being used before being
      set.
      
      The same idiom is applied to both the ipaclient role and the plugins
      ansible_module_utils.
      10b3f461
  18. Sep 05, 2022
    • Thomas Woerner's avatar
      ipaserver/ipareplica: Add isatty method to AnsibleModuleLog · 7077776d
      Thomas Woerner authored
      In some cases ipa code is using sys.stdout.isatty. As stdout is mapped
      to AnsibleModuleLog this call will lead in a traceback as it was not
      defined.
      
      The staticmethod isatty has been added to AnsibleModuleLog in ipaserver
      role module_utils/ansible_ipa_server.py and in ipareplica role
      module_utils/ansible_ipa_repica.py.
      
      Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2120415
             ansible-freeipa Replica Install Setup DNS fails
      Fixes: #251 - 'AnsibleModuleLog' object has no attribute 'isatty'
      Fixes: #117 - 'AnsibleModuleLog' object has no attribute 'isatty'
      7077776d
  19. Aug 30, 2022
    • Thomas Woerner's avatar
      ipaserver: Add missing idstart check · de8911af
      Thomas Woerner authored
      The idstart needs to be larger than UID_MAX or GID_MAX from /etc/login.defs.
      This is "Require idstart to be larger than UID_MAX" for freeipa.
      
      Fixes: #896 (Invalid RID/SID SSSD backtrace after deployment)
      de8911af