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. Sep 29, 2021
  3. 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
  4. 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
  5. 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
  6. Nov 18, 2020
    • Thomas Woerner's avatar
      ipaserver: copy_external_cert should use basename on server only · 4d950958
      Thomas Woerner authored
      Currently the certifaictes are copied ot the server with the complete
      path that is provided within the playbook. This could result in
      unexpected file placements. Certificates should be placed in the /root
      folder for the deployment.
      
      Fixes #405 (copy_external_cert does not handle pathed items)
      4d950958
  7. Sep 08, 2020
    • Thomas Woerner's avatar
      ipa[server,replica,client]: Drop deactivated Python2/3 test · cf4c5903
      Thomas Woerner authored
      These tests have been deactivated for some time with b51397eb and are
      removed now.
      cf4c5903
    • Thomas Woerner's avatar
      ipa[server,replica]: New variables to set firewalld zone · a7e532a4
      Thomas Woerner authored
      The new variables ipa[server,replica]_firewalld_zone have been added to
      be able to set the zone in which the needed services for IPA are enabled.
      
      New tasks have been added to check if the zone is available in the runtime
      and also permamanet environment.
      
      The code to enable firewalld has been moved out of thee
      ipa[server,replica]_install_packages blocks to make sure that the firewalld
      service is also enabled if the package is already installed.
      
      Fixes: issue #177 (How to set up firewalld zones?)
      a7e532a4
  8. Jul 02, 2020
    • Thomas Woerner's avatar
      ipa[server,replica]: Fix pkcs12 info regressions introduced with CA-less · 8ce5fd14
      Thomas Woerner authored
      With the CA-less patches the types for the pkcs12 infos have been changed
      to lists in the modules. This is resulting in a bad conversion from None
      to [''] for the parameters. Because of this a normal replica deployment is
      failing as [''] is not a valid value.
      
      The install.yml files for ipareplica and also ipaserver have been changed
      in the way that the pkcs12 values are checked if they are None. The
      parameter will simply be omitted in this case and the parameter in the
      module will become None by default.
      8ce5fd14
  9. Jun 03, 2020
  10. Dec 09, 2019
    • Alexander Bokovoy's avatar
      Install and enable firewalld if it is configured for ipaserver role · 2136c734
      Alexander Bokovoy authored
      ipaserver role by default tries to configure firewalld but it didn't
      check if firewalld related packages were installed.
      
      Similar to DNS and trust to AD features, install firewalld-related
      packages before trying to configure firewalld.
      
      Additionally, enable and start firewalld.service because otherwise
      firewall-cmd cannot communicate with firewalld itself (it is not
      starting on demand).
      
      If and administrator considers not to use firewalld, a default for
      ipaserver_setup_firewalld variable has to be set to 'no'.
      
      Fixes: https://github.com/freeipa/ansible-freeipa/issues/116
      2136c734
  11. Jul 17, 2019
  12. Jul 05, 2019
    • Thomas Woerner's avatar
      ipaserver: Support sync_time changes of 4.8.0 · d2968b26
      Thomas Woerner authored
      sync_time is not using options anymore, but has two new arguments. These
      are ntp_servers and ntp_pool. The options argument is not used anymore.
      
      This requires to use inspect on sync_time to be able to detect if the old
      or the new function is available.
      
      The call for get_time_source has been added, but is documented out as the
      call is only useful in interactive mode.
      
      ipaserver_test now returns ntp_servers and ntp_pool, which are then used
      for ipaserver_setup_ntp.
      d2968b26
  13. Jun 27, 2019
    • Thomas Woerner's avatar
      ipaserver: Add support for external signed CA · 45d80080
      Thomas Woerner authored
      This adds support for the --external-ca option to ipaserver. Lots of
      additional tests and checks from ServerInstallInterface.__init__ have
      been added to ipaserver_test. Also duplicate tests cna checks have been
      removed.
      
      Installer settings in ansible_ipa_server module_util are now also set
      to the defaults that are used in Installable, ServerInstallInterface,
      ServerMasterInstall, ADTrustInstallInterface and Uninstall.
      
      The /root/ipa.csr file generated on the node in ca.install_step_0 will
      be copied to the controller as "{{ inventory_hostname }}-ipa.csr".
      
      The new task file copy_external_cert.yml has been added to copy the
      generated certificate defined in ipaserver_external_cert_files to the node
      to continue with ca.install_step_1.
      
      The tasks/install.yml file has been adapted to make sure that the steps
      that will be done in step two will be skipped after step one has been
      done.
      45d80080
  14. Jun 26, 2019
  15. Jun 07, 2019
  16. Jun 04, 2019
  17. May 31, 2019
    • Thomas Woerner's avatar
      ipa[server,replica]: Enable freeipa-trust service if adtrust is enabled · 5951b954
      Thomas Woerner authored
      The freeipa-trust service has not been added if adtrust was enabled. For
      ipareplica the addition of freeipa-replication has been removed as the
      used port is not used anymore since some time.
      
      Fixes: #83 (when installing with ipaserver_setup_adtrust: true the firewalld
      service freeipa-trust is not added)
      5951b954
  18. May 03, 2019
  19. Apr 18, 2019
  20. Apr 17, 2019
    • Thomas Woerner's avatar
      ipaserver_setup_adtrust: Add missing settings for adtrust and module · a980aec1
      Thomas Woerner authored
      There have been missing settings that have not been provided to
      ipaserver_setup_adtrust. These are: enable_compat, rid_base and
      secondary_rid_base.
      
      The settings rid_base and secondary_rid_base are now initialized in
      ipaserver_test and propagated in the results.
      
      The two settings netbios_name and reset_netbios_name are placed in the
      adtrust binding in the adtrust.install_check call. These are now saved
      when ipaserver_test finishes and are written back in the fist steps of
      ipaserver_setup_adtrust to make adtrust.install working.
      
      The settings add_sids and add_agents are now initialized in
      ansible_ipa_server in the same way as in ServerMasterInstall. These
      settings are fixed in the server deployment.
      a980aec1
    • Thomas Woerner's avatar
      ipa[server,replica,client]: Do not use meta end_play · 0954f845
      Thomas Woerner authored
      Meta end_play has been used as a simple solution to end the playbook
      processing in special conditions, like for example when the deployment
      was already done before.
      
      meta end_play has been replaced with blocks and conditions for these
      blocks.
      
      Fixes: #70 (Avoid using meta end_play)
      0954f845
    • Thomas Woerner's avatar
      ipa[server,replica,client]: Do not enforce ansible_fqdn as hostname · bbaaf1f7
      Thomas Woerner authored
      The ansible_fqdn hostname has been enforced to be set and used in
      ipaserver, ipareplica and also ipaclient role. This has been removed as
      the hostname should only be set if specified explicitly with
      ipa[server,replica,client]_hostname.
      bbaaf1f7
  21. Apr 03, 2019
  22. Mar 26, 2019
  23. Feb 12, 2019
  24. Nov 22, 2018