Skip to content
  1. Nov 14, 2022
    • Thomas Woerner's avatar
      ipaclient_get_otp: Fix documentation sections and agument spec · e932f65b
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      - `choices` needs to match `argument_spec`
      
      RETURN section
      
      - `type: string` is not valid and needs to be replaced by `type: str`
      - `elements: str` needs to be given for list of string parameters
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      
      A call to ansible_ipa_client.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      e932f65b
    • Thomas Woerner's avatar
      ipaclient_get_facts: Fix documentation sections and agument spec · c633b2dc
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      A copyright header needs to be present.
      
      DOCUMENTATION section
      
      - `author` needs to be given with the github user also: `Name (@user)`
      
      Example section needs to be present, even if empty.
      
      RETURN section needs to be present if parameters are returned.
      c633b2dc
    • Thomas Woerner's avatar
      ipaclient_fstore: Fix documentation sections and agument spec · c37be741
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      
      A call to ansible_ipa_client.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      c37be741
    • Thomas Woerner's avatar
      ipaclient_fix_ca: Fix documentation sections and agument spec · 97a7232b
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type='str'` needs to be set for string parameters
      - `elements='str'` needs to be added to all list of string parameters
      - `elements='dict'` needs to be added to all list of dict parameters
      
      A call to ansible_ipa_client.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      97a7232b
    • Thomas Woerner's avatar
      ipaclient_api: Fix documentation sections and agument spec · e3ba5c75
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      RETURN section
      
      - `type: string` is not valid and needs to be replaced by `type: str`
      
      argument_spec
      
      - `elements='str'` needs to be added to all list of string parameters
      - `elements='dict'` needs to be added to all list of dict parameters
      
      A call to ansible_ipa_client.check_imports has been added to check for import
      errors.
      
      The `copyright` date is extended with `-2022`.
      e3ba5c75
    • Thomas Woerner's avatar
      ansible_ipa_client: Fix ansible-test fake execution test findings · b2dfd110
      Thomas Woerner authored
      All imports that are only available after installing IPA need to be in a
      try exception clause to be able to pass the fake execution test. The old
      workaround "if 'ansible.executor' in sys.modules:" is not working with
      this test anymore.
      
      If the imports can not be done, all used and needed attributes are
      defines with the value None.
      
      The new function check_imports has been added to fail with module.fail_json
      if an import exception occured and ANSIBLE_IPA_CLIENT_MODULE_IMPORT_ERROR is
      not None. This function needs to be called in all modules.
      
      The `copyright` date is extended with `-2022`.
      b2dfd110
    • Thomas Woerner's avatar
      Merge pull request #978 from rjeffman/ci_update_linters · 0f0c098f
      Thomas Woerner authored
      linters: Fix versions of linter packages due to Python 3.11.
      0f0c098f
  2. Nov 11, 2022
  3. Nov 10, 2022
    • Thomas Woerner's avatar
      ipaclient_setup_nss: Fix undefined ca_certs for NoCertificateError case · 1ba397e7
      Thomas Woerner authored
      In case get_certs_from_ldap failed with errors.NoCertificateError the
      code lead to a trace back as certstore.make_compat_ca_certs was using
      with undefined ca_certs variable.
      
      The code to generate ca_certs for this case was copied over from
      ipaclient_api. This is loading the certificate list from paths.IPA_CA_CRT.
      1ba397e7
  4. Nov 07, 2022
  5. Oct 27, 2022
  6. Oct 26, 2022
    • Thomas Woerner's avatar
      ipadnsrecord: Fix documentation sections and agument spec · 77c6770b
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `type: string` is not valid and needs to be replaced by `type: str`
      - `suboptions` instead of `options` needs to be used for dict parameters
      - `authors` needs to be given with the github user also: `Name (@user)`
      - `choices` needs to match `argument_spec`
      - `description` needs to match parameter
      - all parameters need to be defined
      
      argument_spec
      
      - `elements="str"` needs to be added to all list of string parameters
      - `no_log=False` or `no_log=True` needs to be set for all parameters
        that have `key` in the name or for dicts also in one the key names
      - `elements="dict"` needs to be added to all list of dict parameters
      
      The `copyright` date is extended with `-2022`.
      77c6770b
    • Rafael Guterres Jeffman's avatar
      Merge pull request #938 from t-woerner/fix_host_docs_for_ansible_test · 169e772f
      Rafael Guterres Jeffman authored
      ipahost: Fix documentation sections and agument spec
      169e772f
    • Thomas Woerner's avatar
      ipahost: Fix documentation sections and agument spec · 44e2718a
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `suboptions` instead of `options` needs to be used for dict parameters
      - `required` tags need to be fixed according to the `argument_spec`
      - `aliases` tag needs to match `argument_spec`
      - `type` tag needs to match `argument_spec`
      - `default` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      
      RETURN section
      
      - `contains` needs to be used instead of `options` for dicts
      - `type: str` needs to be used for string parameters
      
      argument_spec
      
      - `elements="str"` needs to be added to all list of string parameters
      - `no_log=False` or `no_log=True` needs to be set for all parameters
        that have `key` in the name or for dicts also in one the key names
      
      The `copyright` date is extended with `-2022`.
      
      Additional changes:
      
      - Parameter sshpubkey changed to list of strings in argument_spec
      - New test test/host/test_host_sshpubkey.yml
      44e2718a
    • Rafael Guterres Jeffman's avatar
      Merge pull request #957 from t-woerner/fix_user_docs_for_ansible_test · c1827807
      Rafael Guterres Jeffman authored
      ipauser: Fix documentation sections and agument spec
      c1827807
    • Rafael Guterres Jeffman's avatar
      Merge pull request #958 from t-woerner/fix_vault_docs_for_ansible_test · 5c1c4d83
      Rafael Guterres Jeffman authored
      ipavault: Fix documentation sections and agument spec
      5c1c4d83
  7. Oct 21, 2022
  8. Oct 19, 2022
    • Denis Karpelevich's avatar
      New netgroup management module · 495677df
      Denis Karpelevich authored
      
      
      There is a new netgroup management module placed in the plugins folder:
      
          plugins/modules/ipanetgroup.py
      
      The netgroup module allows to ensure presence or absence of netgroup
      and manage netgroup members.
      
      Here is the documentation for the module:
      
          README-netgroup.md
      
      New example playbooks have been added:
      
          playbooks/netgroup/netgroup-absent.yml
          playbooks/netgroup/netgroup-member-absent.yml
          playbooks/netgroup/netgroup-member-present.yml
          playbooks/netgroup/netgroup-present.yml
      
      New tests for the module:
      
          tests/netgroup/test_netgroup.yml
          tests/netgroup/test_netgroup_client_context.yml
          tests/netgroup/test_netgroup_member.yml
          tests/netgroup/test_netgroup_member_absent.yml
          tests/netgroup/test_netgroup_member_case_insensitive.yml
      
      Signed-off-by: default avatarDenis Karpelevich <dkarpele@redhat.com>
      495677df
    • Rafael Guterres Jeffman's avatar
      Merge pull request #954 from t-woerner/fix_ipatopologysegment_docs_for_ansible_test · 6e44b4d0
      Rafael Guterres Jeffman authored
      ipatopologysegment: Fix documentation sections and agument spec
      6e44b4d0
    • Thomas Woerner's avatar
      ipatopologysegment: Fix documentation sections and agument spec · 9c71d91a
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `author` needs to be given with the github user also: `Name (@user)`
      
      argument_spec
      
      - `type="str"` needs to added to all string parameters
      
      The `copyright` date is extended with `-2022`.
      9c71d91a
    • Thomas Woerner's avatar
      README-vault: Add new_public_key and new_public_key_file · 9271b84d
      Thomas Woerner authored
      According to the argument_spec new_public_key is an alias for
      vault_public_key and new_public_key_file is an alias for
      vault_public_key_file. The aliases have been added.
      9271b84d
    • Thomas Woerner's avatar
      ipavault: Fix documentation sections and agument spec · 2621b311
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: bool` needs to be set for bool parameters
      
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `type: string` is not valid and needs to be replaced by `type: str`
      - `required` tags need to be fixed according to the `argument_spec`
      - `aliases` tag needs to match `argument_spec`
      - `author` needs to be given with the github user also: `Name (@user)`
      - `choices` needs to match `argument_spec`
      - all parameters need to be defined
      
      RETURN section
      
      - `contains` needs to be used instead of `options` for dicts
      - `type: string` is not valid and needs to be replaced by `type: str`
      
      argument_spec
      
      - `elements="str"` needs to be added to all list of string parameters
      - `default=.*` needs to be dropped if `required=True` is also given
      
      The `copyright` date is extended with `-2022`.
      2621b311
    • Thomas Woerner's avatar
      Merge pull request #959 from rjeffman/remove_whitelist · 9480841b
      Thomas Woerner authored
      documentation: Change occurences of whitelist to allowlist.
      9480841b
    • Thomas Woerner's avatar
      Merge pull request #960 from rjeffman/ansbile_2_14_new_module · 461a9ec0
      Thomas Woerner authored
      new_module: Modify new_module and templates for Ansible 2.14
      461a9ec0
    • Rafael Guterres Jeffman's avatar
      documentation: Change occurences of whitelist to allowlist. · 706eb152
      Rafael Guterres Jeffman authored
      This change follows language use recomendation from NISTIR 8366,
      "Guidance for NIST Staff on Using Inclusive Language in Documentary
      Standards", accessible from
      
          https://nvlpubs.nist.gov/nistpubs/ir/2021/NIST.IR.8366.pdf
      706eb152
  9. Oct 18, 2022
    • Thomas Woerner's avatar
      Merge pull request #961 from rjeffman/ipaconfig_fix_enable_sid_not_required · f8ca8a7b
      Thomas Woerner authored
      ipaconfig: Do not require enable_sid for add_sids or netbios_name
      f8ca8a7b
    • Rafael Guterres Jeffman's avatar
      ipaconfig: Do not require enable_sid for add_sids or netbios_name · c808ad6e
      Rafael Guterres Jeffman authored
      Current behavior of ipaconfig mimics FreeIPA CLI and requires that
      'enable_sid' is set to True every time add_sids or netbios_name are
      used. It is sufficient that SID generation is enabled to use add_sids
      and netbios_name, but the IPA API requires 'enable_sid' so that the
      operations are executed.
      
      This patch allows ansible-freeipa plugin ipaconfig to run 'add_sids' or
      set 'netbios_name without requiring 'enable_sid' to be set on the
      playbook.
      
      If SID generation is enabled, 'add_sids' and 'netbios_name' can be used
      without 'enable_sid: yes'. If SID generation is not enabled, an error
      message will be raised if 'enable_sid: yes' is not used.
      c808ad6e
  10. Oct 17, 2022