Skip to content
  1. Jul 09, 2019
  2. Jul 08, 2019
    • Thomas Woerner's avatar
      New group management module · 2afb8c6a
      Thomas Woerner authored
      There is a new group management module placed in the plugins folder:
      
        plugins/modules/ipagroup.py
      
      The group module allows to add, remove, enable, disable, unlock und undelete
      groups.
      
      The group module is as compatible as possible to the Ansible upstream
      `ipa_group` module, but addtionally offers to add users to a group and also
      to remove users from a group.
      
      Here is the documentation for the module:
      
        README-group.md
      
      New example playbooks have been added:
      
        playbooks/user/add-groups-to-group.yml
        playbooks/user/add-user-to-group.yml
        playbooks/user/add-group.yml
        playbooks/user/delete-group.yml
      2afb8c6a
    • Thomas Woerner's avatar
      New user management module · a36e8e08
      Thomas Woerner authored
      There is a new user management module placed in the plugins folder:
      
        plugins/modules/ipauser.py
      
      The user module allows to add, remove, enable, disable, unlock und undelete
      users.
      
      The user module is as compatible as possible to the Ansible upstream
      `ipa_user` module, but addtionally offers to preserve delete, enable,
      disable, unlock and undelete users.
      
      Here is the documentation for the module:
      
        README-user.md
      
      New example playbooks have been added:
      
        playbooks/user/add-user.yml
        playbooks/user/delete-user.yml
        playbooks/user/enable-user.yml
        playbooks/user/disable-user.yml
        playbooks/user/delete-preserve--user.yml
        playbooks/user/undelete-user.yml
      a36e8e08
    • Thomas Woerner's avatar
      ansible_freeipa_module: New functions date_format and compare_args_ipa · 1cb0ac67
      Thomas Woerner authored
      date_format parses the supported date formats and creates a datetime object.
      
      compare_args_ipa compares generated args with args returned by IPA command
      find_ functions.
      1cb0ac67
  3. 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
    • Thomas Woerner's avatar
      ipaclient: Support sync_time changes of 4.8.0 · 03d904b7
      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.
      
      ipaclient_test now returns ntp_servers and ntp_pool, which are then used
      for ipaclient_setup_ntp.
      03d904b7
    • Thomas Woerner's avatar
      ipaclient/action_plugins/ipaclient_get_otp: Enhanced error reporting · 7a5fadfc
      Thomas Woerner authored
      If kinit_password call failed because of wrong password or even because
      kinit was not found, there was a very unspecific error message. Now these
      errors will be properly reported.
      
      Fixes: RHBZ#1727277
      7a5fadfc
    • Thomas Woerner's avatar
      roles/ipaclient/README.md: OTP needs kinit on controller · 45b2648a
      Thomas Woerner authored
      Add Information about needed /usr/bin/kinit on the controller when OTP is used
      45b2648a
    • Thomas Woerner's avatar
      README.md: OTP needs kinit on controller · 27fb3e1b
      Thomas Woerner authored
      Add Information about needed /usr/bin/kinit on the controller when OTP is used
      27fb3e1b
  4. Jul 02, 2019
    • Thomas Woerner's avatar
      ipaserver_prepare: Properly report error, do show trace back · 115f96d0
      Thomas Woerner authored
      The raises of RuntimeError, ValueError and ScriptError are currently not
      properly handled in ipaserver_prepare. This results in a trace back error
      shown in Ansible instead of only showing the error message.
      
      This happened for example if a nameserver is in /etc/resolv.conf that is
      not reachable.
      115f96d0
  5. Jul 01, 2019
  6. Jun 27, 2019
    • Thomas Woerner's avatar
      New tests folder · c708ef78
      Thomas Woerner authored
      There are currently only external signed CA tests:
      
      external-signed-ca-with-automatic-copy
      external-signed-ca-with-manual-copy
      c708ef78
    • Thomas Woerner's avatar
      e7de0987
    • 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
  7. Jun 26, 2019
  8. Jun 25, 2019
  9. Jun 21, 2019
    • Thomas Woerner's avatar
      ipareplica: Make sure that certmonger picks the right master · 20922206
      Thomas Woerner authored
      This is related to freeipa#0f31564b35aac250456233f98730811560eda664
      
        During ipa-replica-install, http installation first creates a service
        principal for http/hostname (locally on the soon-to-be-replica), then
        waits for this entry to be replicated on the master picked for the
        install.
        In a later step, the installer requests a certificate for HTTPd. The local
        certmonger first tries the master defined in xmlrpc_uri (which is
        pointing to the soon-to-be-replica), but fails because the service is not
        up yet. Then certmonger tries to find a master by using the DNS and looking
        for a ldap service. This step can pick a different master, where the
        principal entry has not always be replicated yet.
        As the certificate request adds the principal if it does not exist, we can
        end by re-creating the principal and have a replication conflict.
      
        The replication conflict later causes kerberos issues, preventing
        from installing a new replica.
      
        The proposed fix forces xmlrpc_uri to point to the same master as the one
        picked for the installation, in order to make sure that the master already
        contains the principal entry.
      
        https://pagure.io/freeipa/issue/7041
      20922206
    • Thomas Woerner's avatar
      ansible_ipa_client: Always set options.unattended · ca4518a6
      Thomas Woerner authored
      This has not been done so far in the ansible_ipa_client, but only in the
      modules where it was really needed. But as these places are getting more
      with 4.7.90, this setting makes it into the module_utils.
      ca4518a6
  10. Jun 17, 2019
  11. Jun 14, 2019