Skip to content
  1. Jul 05, 2022
    • Thomas Woerner's avatar
      ipaserver: Use jinja for list concatenation · 0ff119a2
      Thomas Woerner authored
      With ansible-2.13 it is required to use jinja for list concatenation.
      
        list: "[] + ['a'] + ['b']"
      
      needs to become
      
        list: "{{ [] + ['a'] + ['b'] }}"
      
      copy_external_cert.yml needed to be changed.
      0ff119a2
  2. Jun 22, 2022
    • Thomas Woerner's avatar
      New roles for smartcard server and client setup · 9932b1dc
      Thomas Woerner authored
      There are new smartcard roles in the roles folder:
      
          roles/ipasmartcard_server
          roles/ipasmartcard_client
      
      This roles allows to setup smartcard for servers and clients.
      
      Here is the documentation for the roles:
      
          roles/ipasmartcard_server/README.md
          roles/ipasmartcard_client/README.md
      
      New example playbooks have been added:
      
          playbooks/install-smartcard-server.yml
          playbooks/install-smartcard-replicas.yml
          playbooks/install-smartcard-servers.yml
          playbooks/install-smartcard-clients.yml
      9932b1dc
  3. Mar 22, 2022
  4. Feb 14, 2022
  5. Jan 18, 2022
    • Thomas Woerner's avatar
      ipaclient_get_keytab: Do not use gssapi for kinit_keytab · b0252fb5
      Thomas Woerner authored
      Due to a change in Ansible to depend on Python 3.8 it is needed to only
      use bindings that are provided by Python and Ansible core. gssapi is
      therefore not usable any more.
      
      The kinit_keytab function was using gssapi and now has to use the kinit
      command insead.
      b0252fb5
  6. 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
  7. Jan 12, 2022
  8. Dec 14, 2021
  9. Dec 10, 2021
  10. Nov 29, 2021
    • Rafael Guterres Jeffman's avatar
      Debian Buster: Fix "No module named 'ipapython'". · 44b3c300
      Rafael Guterres Jeffman authored
      When using ipaclient role under Debian 10 (Buster), it is required
      that the python interpreter is set to Python 2.7 as freeipa-client
      package pulls in Python 2.7 dependencies, and does not work with
      Python 3.
      
      This patch adds configuration to properly set python interpreter.
      
      Based on the work by Marc Richter (@The-Judge on Github).
      
      Fix issue #607.
      44b3c300
    • Rafael Guterres Jeffman's avatar
      Ubuntu 18.04: Fix role instalation for Ubuntu Bionic Beaver. · c7a3b26e
      Rafael Guterres Jeffman authored
      Ubuntu Bionic Beaver must use python2 as Python interpreter due to
      the way python-ipalib package is defined.
      
      Before using the role for installation, one  must install package
      python2.7 before executing this role.
      
      Based on the work by Manuel Laurent (@mlaurent205 on Github).
      c7a3b26e
  11. Nov 24, 2021
  12. Sep 29, 2021
  13. Sep 23, 2021
    • Thomas Woerner's avatar
      ipaclient_setup_nss: Use proper nosssd_files list · 60ff782a
      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.
      60ff782a
  14. Aug 31, 2021
    • Rafael Guterres Jeffman's avatar
      ipaserver: Modify vars loading in ansible-freeipa roles. · e70763b0
      Rafael Guterres Jeffman authored
      When loading variables in all ansible-freeipa roles, it is expected
      that a file with these variables is present for each supported Linux
      distribution, and then, based on the information about the distribution
      provided by Ansible, the correct file is loaded.
      
      Previously, only the facts `distribution` and dinstribution version
      related facts were used, which required specific files, or links to
      files for distributions in the same "family", which will probably have
      the same variables set.
      
      This change adds searching for files based on the `os_family` fact,
      allowing distributions that follow the same family rules to be
      supported, without any changes to the codebase. It is still possible
      that a specific distribution configuration overrides the default
      behavior, as `os_family` has lower priority than `distribution`.
      
      For example, distributions on the `RedHat` family, like Oracle Linux,
      Alma Linux, and Rocky Linux, work withoutadding new files, or links to
      files, to fill the `vars`.
      
      Fix issue #573. Fix issue #523.
      e70763b0
    • Rafael Guterres Jeffman's avatar
      ipareplica: Modify vars loading in ansible-freeipa tests. · f63eaf46
      Rafael Guterres Jeffman authored
      When loading variables in all ansible-freeipa roles, it is expected
      that a file with these variables is present for each supported Linux
      distribution, and then, based on the information about the distribution
      provided by Ansible, the correct file is loaded.
      
      Previously, only the facts `distribution` and dinstribution version
      related facts were used, which required specific files, or links to
      files for distributions in the same "family", which will probably have
      the same variables set.
      
      This change adds searching for files based on the `os_family` fact,
      allowing distributions that follow the same family rules to be
      supported, without any changes to the codebase. It is still possible
      that a specific distribution configuration overrides the default
      behavior, as `os_family` has lower priority than `distribution`.
      
      For example, distributions on the `RedHat` family, like Oracle Linux,
      Alma Linux, and Rocky Linux, work withoutadding new files, or links to
      files, to fill the `vars`.
      
      Fix issue #573. Fix issue #523.
      f63eaf46
    • Rafael Guterres Jeffman's avatar
      ipaclient: Modify vars loading in ansible-freeipa roles. · 8259eb1e
      Rafael Guterres Jeffman authored
      When loading variables in all ansible-freeipa roles, it is expected
      that a file with these variables is present for each supported Linux
      distribution, and then, based on the information about the distribution
      provided by Ansible, the correct file is loaded.
      
      Previously, only the facts `distribution` and dinstribution version
      related facts were used, which required specific files, or links to
      files for distributions in the same "family", which will probably have
      the same variables set.
      
      This change adds searching for files based on the `os_family` fact,
      allowing distributions that follow the same family rules to be
      supported, without any changes to the codebase. It is still possible
      that a specific distribution configuration overrides the default
      behavior, as `os_family` has lower priority than `distribution`.
      
      For example, distributions on the `RedHat` family, like Oracle Linux,
      Alma Linux, and Rocky Linux, work withoutadding new files, or links to
      files, to fill the `vars`.
      
      Fix issue #573. Fix issue #523.
      8259eb1e
    • Rafael Guterres Jeffman's avatar
      ipabackup: Modify vars loading in ansible-freeipa roles. · 8028730c
      Rafael Guterres Jeffman authored
      When loading variables in all ansible-freeipa roles, it is expected
      that a file with these variables is present for each supported Linux
      distribution, and then, based on the information about the distribution
      provided by Ansible, the correct file is loaded.
      
      Previously, only the facts `distribution` and dinstribution version
      related facts were used, which required specific files, or links to
      files for distributions in the same "family", which will probably have
      the same variables set.
      
      This change adds searching for files based on the `os_family` fact,
      allowing distributions that follow the same family rules to be
      supported, without any changes to the codebase. It is still possible
      that a specific distribution configuration overrides the default
      behavior, as `os_family` has lower priority than `distribution`.
      
      For example, distributions on the `RedHat` family, like Oracle Linux,
      Alma Linux, and Rocky Linux, work withoutadding new files, or links to
      files, to fill the `vars`.
      
      Fix issue #573. Fix issue #523.
      8028730c
  15. Jun 09, 2021
  16. Jun 04, 2021
  17. May 11, 2021
  18. May 03, 2021
  19. Apr 07, 2021
  20. Mar 19, 2021
    • Grzegorz Grasza's avatar
      Use ansible_facts variable · 7a235310
      Grzegorz Grasza authored
      Without this change the "Import variables specific to distribution"
      tasks fail with "Could not find file on the Ansible Controller..."
      on environments with inject facts disabled.
      
      This changes the tests to run with ansible with
      inject_facts_as_vars = false and fixes other roles and playbooks.
      7a235310
  21. Feb 22, 2021
    • Thomas Woerner's avatar
      ipaclient: Do not fail on rmkeytab error #7 · 976cd1ba
      Thomas Woerner authored
      Due to commit f3f9672d527008dc741ac90aa465bac842eea08d (ipa-rmkeytab: Check
      return value of krb5_kt_(start|end)_seq_get) in IPA 4.9.2 there is a new
      error reported for ipa-rmkeytab in case of a non existing keytab file.
      Using ipa-rmkeytab now results in the error #7 in this case.
      
      The client role is using ipa-rmkeytab and needs to ignore error #7 also.
      
      Fixes: #510 (ipa-client installation with OTP is failed with error code 7
                   (keytab: /usr/sbin/ipa-rmkeytab returned 7))
      976cd1ba
  22. Feb 16, 2021
  23. Dec 01, 2020
  24. Nov 27, 2020
  25. Nov 25, 2020
    • Thomas Woerner's avatar
      ipareplica README.md: Fix typo, add hidden replica parameter · b00632fe
      Thomas Woerner authored
      There was a typo in the README and also the ipareplica_hidden_replica
      parameter was missing.
      b00632fe
    • 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