Skip to content
  1. Jun 11, 2020
    • Rafael Guterres Jeffman's avatar
      New dnsrecord management module. · 0abfe8ab
      Rafael Guterres Jeffman authored
      There is a new dnsrecord managem module placed in the plugins folder:
      
          plugins/modules/ipadnsrecord.py
      
      The dnsrecord module allows management of DNS records and is as compatible
      as possible with the Ansible upstream `ipa_dnsrecord` module, but provide
      some other features like multiple record management in one execution,
      support for more DNS record types, and more.
      
      Here is the documentation for the module:
      
          README-dnsrecord
      
      New example playbooks have been added:
      
          playbooks/dnsrecord/ensure-dnsrecord-is-absent.yml
          playbooks/dnsrecord/ensure-dnsrecord-is-present.yml
          playbooks/dnsrecord/ensure-presence-multiple-records.yml
          playbooks/dnsrecord/ensure-dnsrecord-with-reverse-is-present.yml
          playbooks/dnsrecord/ensure-multiple-A-records-are-present.yml
          playbooks/dnsrecord/ensure-A-and-AAAA-records-are-absent.yml
          playbooks/dnsrecord/ensure-A-and-AAAA-records-are-present.yml
          playbooks/dnsrecord/ensure-CNAME-record-is-absent.yml
          playbooks/dnsrecord/ensure-CNAME-record-is-present.yml
          playbooks/dnsrecord/ensure-MX-record-is-present.yml
          playbooks/dnsrecord/ensure-PTR-record-is-present.yml
          playbooks/dnsrecord/ensure-SRV-record-is-present.yml
          playbooks/dnsrecord/ensure-SSHFP-record-is-present.yml
          playbooks/dnsrecord/ensure-TLSA-record-is-present.yml
          playbooks/dnsrecord/ensure-TXT-record-is-present.yml
          playbooks/dnsrecord/ensure-URI-record-is-present.yml
      
      New tests for the module can be found at:
      
          tests/dnsrecord/test_dnsrecord.yml
          tests/dnsrecord/test_compatibility_with_ansible_module.yml
          tests/dnsrecord/test_dnsrecord_full_records.yml
      0abfe8ab
  2. Jun 08, 2020
  3. Jun 05, 2020
  4. Jun 04, 2020
  5. Jun 01, 2020
    • Rafael Guterres Jeffman's avatar
      Fixes host absent when DNS zone is not found. · 05a1aaed
      Rafael Guterres Jeffman authored
      Since ipahost uses dnsrecord-show, it raises an error when DNS zone is
      not found, but it should not be an ipahost concern.
      
      This patch fixes this behavior by returning no record if DNS zone is
      not found, so processing resumes as if there is no record for the host.
      It fixes behavior when `state: absent` and dnszone does not exist, so,
      host should not exist either, and the ipahost answer is correct and
      indifferent to DNS Zone state.
      05a1aaed
  6. May 28, 2020
    • Rafael Guterres Jeffman's avatar
      Fixes no_log warning for `update_password`. · 5b538628
      Rafael Guterres Jeffman authored
      This patch explicitly set `no_log` option for `update_password` attribute
      to `False`, so that the warning on `no_log` not being set is not issued
      anymore. Ansible incorrectly issued the warning, as `update_password` does
      not carry sensitive information.
      5b538628
  7. May 27, 2020
  8. May 20, 2020
  9. May 14, 2020
  10. May 13, 2020
    • Rafael Guterres Jeffman's avatar
      Fixes behavior of ipavault when no user, service or shared is given. · c236fe3d
      Rafael Guterres Jeffman authored
      IPA CLI allows the creation of vaults without specifying user, service or a
      shared vault, defaulting to create a user vault for the `admin` user. The
      vault module, required that one of user, service or shared was explicitly
      provided, and this patch makes the module behave like the CLI command.
      
      Tests were added to reflect this change.
      c236fe3d
  11. May 12, 2020
  12. May 11, 2020
    • Thomas Woerner's avatar
      ipagroup: Add lacking service check for group_remove_member with old IPA · 60c8be19
      Thomas Woerner authored
      group_remove_member is not able to handle services in old IPA releases.
      In one case the check was missing and the removal of a user from a group
      failed because of this with an older IPA version. The missing check has
      been added.
      
      Fixes #257 (ipagroup fails to remove user from group ipausers)
      60c8be19
    • Thomas Woerner's avatar
      tests/host/test_hosts_principal.yml: Remove dudplicate hosts tag · 1f1762bd
      Thomas Woerner authored
      The hosts tag is used twice in some tests. This leads to a warning in
      Ansible. The commit removes the duplicate tags.
      1f1762bd
    • Thomas Woerner's avatar
      ipahost: Use dnsrecord_show instead of dnsrecord_find command · 2b084e6d
      Thomas Woerner authored
      The host_find command had to be replaced to get the "has_password" and
      "has_keytab" return values. This commit replaces the dnsrecord_find
      with the dnsrecord_show command to have consistent find functions in
      the module.
      2b084e6d
    • Thomas Woerner's avatar
      ipahost: Honour update_password also for random · b3d5b32e
      Thomas Woerner authored
      If random is enabled and update_password is limited to "create_only", the
      random password may only be changed if the host does not exist yet.
      
      Additionally the generation of the random password will fail, if the host
      is already enrolled if update_password is "always" (default value). An
      error will be reported early in this case now.
      
      The command host_show is now used instead of host_find, as `has_password`
      and `has_keytab` are only returned by host_show, but not by host_find. The
      find_host function has been adapated for this change.
      
      Resolves: #253 (ipahost is not idempotent)
      b3d5b32e
  13. May 07, 2020