Skip to content
  1. 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
  2. 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
  3. 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
  4. Aug 26, 2022
  5. Jul 27, 2022
  6. Jul 25, 2022
  7. Jul 06, 2022
  8. Jan 13, 2022
    • Thomas Woerner's avatar
      ansible-test: Fix new findings · 9499a3ed
      Thomas Woerner authored
      ERROR: Found 6 pylint issue(s) which need to be resolved:
      ERROR: plugins/modules/ipaserver_prepare.py:395:4: invalid-name: Variable name "e" doesn't conform to snake_case naming style
      ERROR: roles/ipaserver/library/ipaserver_prepare.py:395:4: invalid-name: Variable name "e" doesn't conform to snake_case naming style
      ERROR: roles/ipaserver/module_utils/ansible_ipa_server.py:333:12: invalid-name: Variable name "ds" doesn't conform to snake_case naming style
      ERROR: roles/ipaserver/module_utils/ansible_ipa_server.py:348:12: invalid-name: Variable name "ds" doesn't conform to snake_case naming style
      ERROR: roles/ipaserver/module_utils/ansible_ipa_server.py:361:12: invalid-name: Variable name "ip" doesn't conform to snake_case naming style
      ERROR: roles/ipaserver/module_utils/ansible_ipa_server.py:364:12: invalid-name: Variable name "e" doesn't conform to snake_case naming style
      
      e has been replaced with err, ds with _ds, ip with _ip.
      9499a3ed
  9. Jan 12, 2022
  10. Nov 24, 2021
  11. Nov 25, 2020
    • Thomas Woerner's avatar
      ipa[server,replica]: Support memory check from command line installers · 5acab7b3
      Thomas Woerner authored
      The common_check function in the replica installer code has been changed
      for the new memory checker code. With this the server and replica command
      line installers got the option --skip-mem-check.
      
      The server and replica role now also support the memory cheker and there
      are new variables for server and replica:
      
          ipaserver_mem_check - for ipaserver
          ipareplica_mem_check - for ipaserver
      
      These bool values default to yes and can be turned off in the inventory
      or playbook if needed.
      
      Related to freeipa PR https://pagure.io/freeipa/issue/8404 (Detect and
      fail if not enough memory is available for installation)
      
      Fixes: #450 (IPA Replica Installation Fails)
      5acab7b3
  12. Jun 15, 2020
  13. Jun 03, 2020
    • Thomas Woerner's avatar
      library/ipaserver_setup_ca: Use x509 IPA upstream code for pkcs12 files · 09fefbb2
      Thomas Woerner authored
      With the encoded _http_ca_cert from ipaserver_test it is possible to revert
      back to the IPA upstream code to write the pkcs12 http certificates.
      
      The passed _http_ca_cert only needs to be decoded with decode_certificate.
      09fefbb2
    • Thomas Woerner's avatar
      library/ipaserver_test: Revert to IPA upstream code for pkcs12 files · 578d08c7
      Thomas Woerner authored
      The function load_pkcs12 should not be skipped to verify the given
      certificates. After the certificates have been verified and the temporary
      certificate copies have been generated, these files are copied to
      /etc/ipa/.tmp_pkcs12_* as the temporary files will simply be removed as
      soon as the file descriptors have been closed.
      
      Additionally the [http,dirsrv,pkinit]_pkcs12_info is recreated to point to
      the copied temporary files.
      
      With this revertion the need to change other modules has been rediced to
      the minium, the IPA upstream code can simply be used.
      
      The passed back certificates [http,dirsrv,pkinit]_ca_cert are encoded using
      encode_certificate.
      578d08c7
    • Samuel Veloso's avatar
      Install ipaserver without ca · 4221213f
      Samuel Veloso authored
      4221213f
  14. Mar 30, 2020
    • Thomas Woerner's avatar
      ipaserver docs: Calm down module linter · a972beb4
      Thomas Woerner authored
      The use of "default: idstart+199999" in the description of the idmax
      parameter was resulting in the galaxy import error:
      
        Cannot parse "DOCUMENTATION": mapping values are not allowed here in
        "<unicode string>", line 52, column 58: ... value for the IDs range
        (default: idstart+199999)
      
      The ":" has simply been removed to fix this issue.
      a972beb4
  15. Mar 20, 2020
  16. Dec 11, 2019
    • Thomas Woerner's avatar
      ipaserver_test: Do not use zone_overlap_check for domain name validation · 9c853894
      Thomas Woerner authored
      The use of zone_overlay_check for the domain name validation is not good
      for a repeated execution of the server deployment where setup_dns is
      enabled. The zone overlay check will fail with "DNS zone X already exists
      in DNS". zone_overlay_check is later on used in dns.install_check so it is
      not needed to do it here also.
      
      Fixes issues #164 (domain option validator should not call zone overlap..)
      9c853894
  17. Jul 30, 2019
  18. Jul 22, 2019