Skip to content
  1. Aug 21, 2020
    • Thomas Woerner's avatar
      tests/user/test_users*.yml: Use extended dynamic users.json · b7e1a99b
      Thomas Woerner authored
      test_users_absent.yml was using users_absent.json. It has been adapted to
      use users.json instead with an additional json_query to get only the names
      from users_present.json.
      
      create_users_json.yml has been added to create users.json if it is missing
      containing 500 users. It is included by test_users_present.yml and
      test_users_absent.yml.
      
      users_present.sh has been renamed to users.sh and modified to create by
      default users.json with 1000 users and additional with password and
      passwordexpiration in two years.
      
      jmespath has been added to pip install list in
      tests/azure/templates/playbook_tests.yml to emable the use of json_query.
      
      The requirement for jmespath has been added to tests/README.md.
      b7e1a99b
  2. Aug 17, 2020
    • Rafael Guterres Jeffman's avatar
      Add support for option `name_from_ip` in ipadnszone module. · abbd15e6
      Rafael Guterres Jeffman authored
      IPA CLI has an option `name_from_ip` that provide a name for a zone
      from the reverse IP address, so that it can be used to, for example,
      manage PTR DNS records.
      
      This patch adds a similar attribute to ipadnszone module, where it
      will try to find the proper zone name, using DNS resolve, or provide
      a sane default, if a the zone name cannot be resolved.
      
      The option `name_from_ip` must be used instead of `name` in playbooks,
      and it is a string, and not a list.
      
      A new example playbook was added:
      
          playbooks/dnszone/dnszone-reverse-from-ip.yml
      
      A new test playbook was added:
      
          tests/dnszone/test_dnszone_name_from_ip.yml
      abbd15e6
  3. Aug 14, 2020
  4. Aug 13, 2020
    • Thomas Woerner's avatar
      New location management module · 5ef6e61f
      Thomas Woerner authored
      There is a new location management module placed in the plugins folder:
      
          plugins/modules/ipalocation.py
      
      The location module allows to ensure presence or absence of locations.
      
      Here is the documentation for the module:
      
          README-location.md
      
      New example playbooks have been added:
      
          playbooks/location/location-absent.yml
          playbooks/location/location-present.yml
      
      New tests for the module:
      
          tests/location/test_location.yml
      5ef6e61f
    • Thomas Woerner's avatar
      New selfservice management module · 603f0c13
      Thomas Woerner authored
      There is a new selfservice management module placed in the plugins folder:
      
          plugins/modules/ipaselfservice.py
      
      The selfservice module allows to ensure presence and absence of selfservices
      and manage selfservice attributes.
      
      Here is the documentation for the module:
      
          README-selfservice.md
      
      New example playbooks have been added:
      
          playbooks/selfservice/selfservice-absent.yml
          playbooks/selfservice/selfservice-present.yml
          playbooks/selfservice/selfservice-member-absent.yml
          playbooks/selfservice/selfservice-member-present.yml
      
      New tests for the module:
      
          tests/selfservice/test_selfservice.yml
      603f0c13
    • Thomas Woerner's avatar
      New delegation management module · 64adb6c1
      Thomas Woerner authored
      There is a new delegation management module placed in the plugins folder:
      
          plugins/modules/ipadelegation.py
      
      The delegation module allows to ensure presence and absence of delegations
      and manage delegation attributes.
      
      Here is the documentation for the module:
      
          README-delegation.md
      
      New example playbooks have been added:
      
          playbooks/delegation/delegation-absent.yml
          playbooks/delegation/delegation-present.yml
          playbooks/delegation/delegation-member-absent.yml
          playbooks/delegation/delegation-member-present.yml
      
      New tests for the module:
      
          tests/delegation/test_delegation.yml
      64adb6c1
  5. Aug 12, 2020
  6. Aug 11, 2020
    • Rafael Guterres Jeffman's avatar
      Fix `allow_retrieve_keytab_host` in service module. · b5e93c70
      Rafael Guterres Jeffman authored
      The attribute `allow_retrieve_keytab_host` was not working due to
      wrong processing of the input and verification if the values should
      be updated. Both the issues are fixed by this change.
      
      Tests were added to better verify service keytab members.
      b5e93c70
    • Rafael Guterres Jeffman's avatar
      Modified return value for ipavault module. · 7dd0b547
      Rafael Guterres Jeffman authored
      The ipavault module was returning a single string value when retrieving
      data. To keep consistency with other modules, it should return a dict
      with the `data` variable in it.
      
      This change modifies the result of ipavault to be a dict and also fixes
      relevant tests, examples and documentation.
      7dd0b547
  7. Aug 10, 2020
    • Rafael Guterres Jeffman's avatar
      Add support for parameter `rename` on ipahostgroup. · 16f67ce9
      Rafael Guterres Jeffman authored
      FreeIPA 4.8.7 introduced an option to rename an existing hostgroup.
      This patch adds support for renaming hostgroups if the option is
      available on installed IPA version.
      
      A new state `renamed` and a new option `rename` (alias: `new_name`)
      was added to module `ipahostgroup` to allow renaming of host groups.
      
      The implemented behavior is:
      * Rename if `name` exists and `rename` doesn't.
      * Do nothing if `name` does not exist and `rename` does, or if
        `name` equals to `rename`. (result.changed is False)
      * Fail if neither or both `name` and `rename` exist.
      16f67ce9
  8. Aug 06, 2020
    • Sergio Oliveira Campos's avatar
      Allow multiple dns zones to be absent. · 75d16c2d
      Sergio Oliveira Campos authored
      This PR allow ipadnszone module to ensure that multiple dns zones
      are absent at once, to be consistent with other ansible-freeipa
      modules.
      
      To fix this issue, it was required that custom arguents must be
      passed using keyword arguments so that `get_ipa_command_args()`
      is kept generic.
      75d16c2d
  9. Jul 30, 2020
  10. Jul 28, 2020
  11. Jul 27, 2020
    • Rafael Guterres Jeffman's avatar
      Add support for IPA CLI option `posix`. · 8c889e9b
      Rafael Guterres Jeffman authored
      This patch adds suport for the IPA CLI option `posix` when modifying
      an existing group. Also, enhances verification of `external` and
      `posix/non-posix` groups to avoid unneded API failures (e.g. when
      no change to the posix/external status is needed).
      
      A new test was added:
      
          tests/group/test_group_external_nonposix.yml
      8c889e9b
  12. Jul 21, 2020
    • Rafael Guterres Jeffman's avatar
      New Role management module · b33c5a7b
      Rafael Guterres Jeffman authored
      There is a new role management module placed in the plugins folder:
      
          plugins/modules/iparole.py
      
      The role module allows to ensure presence or absence of roles and
      manage role members.
      
      Here is the documentation for the module:
      
          README-role.md
      
      New example playbooks have been added:
      
          playbooks/role/role-is-absent.yml
          playbooks/role/role-is-present.yml
          playbooks/role/role-member-group-absent.yml
          playbooks/role/role-member-group-present.yml
          playbooks/role/role-member-host-absent.yml
          playbooks/role/role-member-host-present.yml
          playbooks/role/role-member-hostgroup-absent.yml
          playbooks/role/role-member-hostgroup-present.yml
          playbooks/role/role-member-privilege-absent.yml
          playbooks/role/role-member-privilege-present.yml
          playbooks/role/role-member-service-absent.yml
          playbooks/role/role-member-service-present.yml
          playbooks/role/role-member-user-absent.yml
          playbooks/role/role-member-user-present.yml
          playbooks/role/role-members-absent.yml
          playbooks/role/role-members-present.yml
          playbooks/role/role-rename.yml
      
      New tests for the module:
      
          tests/role/test_role.yml
          tests/role/test_role_service_member.yml
      b33c5a7b
    • Thomas Woerner's avatar
      tests/external-signed-ca-../external-ca.sh: Password too weak in FIPS mode · ffba096d
      Thomas Woerner authored
      The password that is used in the script to generate the CA and also sign
      the CSR is not strong enough in FIPS mode. In normal mode the password was
      ok, though.
      
      In FIPS mode the password needs to have at least one upper, lower, digit
      and a special char.
      ffba096d
  13. Jun 30, 2020
    • Rafael Guterres Jeffman's avatar
      Fixes ipaservice disable tests. · 957b5910
      Rafael Guterres Jeffman authored
      Due to use of some shell commands that required a Kerberos ticket,
      the ipaservice test test_service_disable would no work if a ticket
      was not granted before it ran. This patch adresses this issue by
      acquiring a ticket for the `admin` user before it is needed, and
      destroying the tickets by the end of the test execution.
      957b5910
  14. Jun 29, 2020
    • Thomas Woerner's avatar
      ipa[host]group: Fix membermanager unknow user issue · 6132a947
      Thomas Woerner authored
      If a unknown membermanager user presence will be ensured, the unknown user
      error was ignored. This has been fixed in ipagroup. The code for the error
      handling in ipagroup and ipahostgroup has been adapted because of this.
      
      New tests for tests/[host]group/test_[host]group_membermnager.yml have been
      added.
      6132a947
    • Rafael Guterres Jeffman's avatar
      Add suppport for changing password of symmetric vaults. · 78b635ae
      Rafael Guterres Jeffman authored
      Allows changing passwords of symmetric waults, using a new variable
      `new_password` (or the file-base version, `new_password_file`). The
      old password must be passed using the `password` or `password_file`
      variables that also received new aliases `old_password` and
      `old_password_file`, respectively.
      
      Tests were modyfied to reflect the changes.
      78b635ae
    • Thomas Woerner's avatar
      ipa[user,host]: Fail on duplucate names in the users and hosts lists · 1d7fb31b
      Thomas Woerner authored
      It was possible to have several entries for names with the hosts and users
      lists. This resulted sometimes in errors but also unexpected changes. A new
      check has been added to make sure that the names in the users and hosts
      lists are unique.
      
      New tests have been added to verify this in the existing files:
      - tests/host/test_hosts.yml
      - tests/user/test_users.yml
      1d7fb31b
  15. Jun 26, 2020
  16. Jun 15, 2020
  17. Jun 11, 2020
Loading