Skip to content
Snippets Groups Projects
  1. Nov 20, 2019
    • Thomas Woerner's avatar
      ipauser: Return generated random password · b5f20922
      Thomas Woerner authored
      The random password is only returned if random is yes and user did not exist
      or update_password is yes.
      
      If only one user is handled by the module, the returned dict is containing
      this dict:
      
        { "randompassword": "<the user random password>" }
      
      If several users are handled by the module:
      
        { "<user>": { "randompassword": "<the user random password>" } }
      
      This is related to issue #134 (ipahost does not return the random password)
      b5f20922
  2. Nov 12, 2019
  3. Nov 07, 2019
    • Rafael Guterres Jeffman's avatar
      Merge pull request #142 from t-woerner/ipahostgroup_tests · b06ef3fc
      Rafael Guterres Jeffman authored
      ipahostgroup: Fix changed flag, support IPA 4.6 on RHEL-7, new test cases
      Unverified
      b06ef3fc
    • Thomas Woerner's avatar
      Merge pull request #141 from rjeffman/sudorule · dba8c204
      Thomas Woerner authored
      New sudorule (Sudo Rule) management module
      Unverified
      dba8c204
    • Rafael Guterres Jeffman's avatar
      New sudorule (Sudo Rule) management module · 2f621608
      Rafael Guterres Jeffman authored
      There is a new sudorule (Sudo Rule) management module placed in the plugins
      folder:
      
        plugins/modules/ipasudorule.py
      
      The sudorule module allows to ensure presence and absence of Sudo Rules.
      
      Here is the documentation for the module:
      
        README-sudorule.md
      
      New example playbooks have been added:
      
          playbooks/sudorule/ensure-sudorule-host-member-is-absent.yml
          playbooks/sudorule/ensure-sudorule-host-member-is-present.yml
          playbooks/sudorule/ensure-sudorule-hostgroup-member-is-absent.yml
          playbooks/sudorule/ensure-sudorule-hostgroup-member-is-present.yml
          playbooks/sudorule/ensure-sudorule-is-absent.yml
          playbooks/sudorule/ensure-sudorule-is-disabled.yml
          playbooks/sudorule/ensure-sudorule-is-enabled.yml
          playbooks/sudorule/ensure-sudorule-is-present.yml
          playbooks/sudorule/ensure-sudorule-sudocmd-is-absent.yml
          playbooks/sudorule/ensure-sudorule-sudocmd-is-present.yml
      
      New tests added for the module:
      
        tests/hbacrule/test_sudorule.yml
      2f621608
    • Thomas Woerner's avatar
      Merge pull request #102 from Uumas/preotp · 209e4715
      Thomas Woerner authored
      Added support for predefining client OTP using ipaclient_otp
      Unverified
      209e4715
    • Thomas Woerner's avatar
      ipahostgroup: Fix changed flag, support IPA 4.6 on RHEL-7, new test cases · 0e64c80c
      Thomas Woerner authored
      The changed flag returned by ipahostgroup calls have not always been correct.
      The use of the module with IPA version 4.6 on RHEL-7 resulted in encoding
      errors. All this has been fixed.
      
      Addtitionally new test cases have been added to make sure that the issues
      are solved.
      0e64c80c
  4. Nov 05, 2019
    • Thomas Woerner's avatar
      Merge pull request #140 from t-woerner/ipahbacrule · 0c30020a
      Thomas Woerner authored
      New hbacrule (HBAC Rule) management module
      Unverified
      0c30020a
    • Thomas Woerner's avatar
      New hbacrule (HBAC Rule) management module · d36d25d6
      Thomas Woerner authored
      There is a new hbacrule (HBAC Rule) management module placed in the plugins
      folder:
      
        plugins/modules/ipahbacrule.py
      
      The hbacrule module allows to ensure presence and absence of HBAC Rules.
      
      Here is the documentation for the module:
      
        README-hbacrule.md
      
      New example playbooks have been added:
      
        playbooks/hbacrule/ensure-hbarule-allhosts-absent.yml
        playbooks/hbacrule/ensure-hbarule-allhosts-disabled.yml
        playbooks/hbacrule/ensure-hbarule-allhosts-enabled.yml
        playbooks/hbacrule/ensure-hbarule-allhosts-present.yml
        playbooks/hbacrule/ensure-hbarule-allhosts-server-member-absent.yml
        playbooks/hbacrule/ensure-hbarule-allhosts-server-member-present.yml
      
      New tests added for the module:
      
        tests/hbacrule/test_hbacrule.yml
      d36d25d6
  5. Oct 31, 2019
  6. Oct 30, 2019
    • Thomas Woerner's avatar
      ipagroup: Fix changed flag, new test cases · ff9ce6b8
      Thomas Woerner authored
      The changed flag returned by ipagroup calls have not been correct. This
      change fixes this. Addtitionally new test cases have been added to make
      sure that the changed flag is correct.
      ff9ce6b8
    • Thomas Woerner's avatar
      ipagroup: Properly support IPA versions 4.6 and RHEL-7 · a4a15def
      Thomas Woerner authored
      group_add_member is only supporting services in more recent IPA versions.
      This is 4.7+. Code has been added to detect if services are supported by
      the used IPA version and used in the parameters of the module. In this case
      an error is printed.
      
      Additionally all parameters will be get from the module using
      module_params_get provided by ansible_freeipa_module. Additional to_text
      conversions have been removed as they are not needed anymore with this.
      a4a15def
  7. Oct 25, 2019
    • Varun Mylaraiah's avatar
      Merge pull request #136 from t-woerner/ipahbacsvcgroup · 6e6e193a
      Varun Mylaraiah authored
      New hbacsvcgroup (HBAC Service Group) management module
      Unverified
      6e6e193a
    • Thomas Woerner's avatar
      New hbacsvcgroup (HBAC Service Group) management module · 4b9860e1
      Thomas Woerner authored
      There is a new hbacsvcgroup (HBAC Service Group) management module placed
      in the plugins folder:
      
        plugins/modules/ipahbacsvcgroup.py
      
      The hbacsvc module allows to ensure presence and absence of HBAC Service
      Groups.
      
      Here is the documentation for the module:
      
        README-hbacsvcgroup.md
      
      New example playbooks have been added:
      
        playbooks/hbacsvcgroup/ensure-hbacsvcgroup-absent.yml
        playbooks/hbacsvcgroup/ensure-hbacsvcgroup-member-absent.yml
        playbooks/hbacsvcgroup/ensure-hbacsvcgroup-member-present.yml
        playbooks/hbacsvcgroup/ensure-hbacsvcgroup-present.yml
      
      New tests added for the module:
      
         tests/hbacsvcgroup/test_hbacsvcgroup.yml
      4b9860e1
    • Thomas Woerner's avatar
      Update README.md · 5a462ece
      Thomas Woerner authored
      Updated requirements for python3-gssapi
      Unverified
      5a462ece
  8. Oct 24, 2019
    • Varun Mylaraiah's avatar
      Merge pull request #135 from t-woerner/ipahbacsvc · a9cf33f3
      Varun Mylaraiah authored
      New hbacsvc (HBAC Service) management module
      Unverified
      a9cf33f3
    • Thomas Woerner's avatar
      New hbacsvc (HBAC Service) management module · 42eaadfb
      Thomas Woerner authored
      There is a new hbacsvc (HBAC Service) management module placed in the plugins
      folder:
      
        plugins/modules/ipahbacsvc.py
      
      The hbacsvc module allows to ensure presence and absence of HBAC Services.
      
      Here is the documentation for the module:
      
        README-hbacsvc.md
      
      New example playbooks have been added:
      
        playbooks/hbacsvc/ensure-hbacsvc-absent.yml
        playbooks/hbacsvc/ensure-hbacsvc-present.yml
      
      New tests added for pwpolicy:
      
        tests/hbacsvc/test_hbacsvc.yml
      42eaadfb
  9. Oct 22, 2019
  10. Oct 21, 2019
    • Thomas Woerner's avatar
      ipauser: User module extension · 40713e71
      Thomas Woerner authored
      The ipauser module now supports all user settings and additionally to ensure
      the presence of several users with the new users setting. The users setting
      can also be used with other states, but it has to be limited to only contain
      the name of the users.
      
      There updated user management module is placed in the plugins folder:
      
        plugins/modules/ipauser.py
      
      The user module now additionally allows to handle these user settings:
      
        initials
        principalexpiration
        random
        city
        userstate
        postalcode
        mobile
        pager
        fax
        orgunit
        manager
        carlicense
        sshpubkey
        userauthtype
        userclass
        radius
        radiususer
        departmentnumber
        employeenumber
        employeetype
        preferredlanguage
        certificate
        certmapdata
        noprivate
        nomembers
      
      Here is the updated documentation for the module:
      
        README-user.md
      
      New example playbooks have been added:
      
        playbooks/user/user_certificate_absent.yml
        playbooks/user/user_certificate_present.yml
        playbooks/user/user_present.yml
        playbooks/user/users_absent.yml
        playbooks/user/users_certificate_absent.yml
        playbooks/user/users_certificate_present.yml
        playbooks/user/users_present.yml
        plugins/modules/ipauser.py
      
      New tests added for ipauser:
      
        tests/user/certificate/cert1.der
        tests/user/certificate/cert1.pem
        tests/user/certificate/cert2.der
        tests/user/certificate/cert2.pem
        tests/user/certificate/cert3.der
        tests/user/certificate/cert3.pem
        tests/user/certificate/private1.key
        tests/user/certificate/private2.key
        tests/user/certificate/private3.key
        tests/user/certificate/test_user_certificate.yml
        tests/user/certificate/test_users_certificate.yml
        tests/user/certmapdata/test_user_certmapdata.yml
        tests/user/certmapdata/test_user_certmapdata_issuer_subject.yml
        tests/user/certmapdata/test_users_certmapdata.yml
        tests/user/test_user.yml
        tests/user/test_users.yml
        tests/user/test_users_absent.yml
        tests/user/test_users_invalid_cert.yml
        tests/user/test_users_present.yml
        tests/user/test_users_present_slice.yml
        tests/user/users_absent.json
        tests/user/users_absent.sh
        tests/user/users_present.json
        tests/user/users_present.sh
      40713e71
    • Thomas Woerner's avatar
      ansible_freeipa_module: New function api_get_realm · 1428143d
      Thomas Woerner authored
      The function api_get_realm is returning the realm of a connected FreeIPA
      api. This is needed for proper principal checks in the extended ipauser
      module that supports principals now.
      1428143d
    • Thomas Woerner's avatar
      ansible_freeipa_module: Convert tuple to list in compare_args_ipa · 89328422
      Thomas Woerner authored
      The conversion is needed because older FreeIPA versions are returning
      tuples in some cases instead of lists. To be able to compare them the
      conversion to a list is needed.
      89328422
  11. Oct 18, 2019
  12. Oct 09, 2019
  13. Oct 07, 2019
  14. Oct 02, 2019
  15. Oct 01, 2019
    • Thomas Woerner's avatar
      ipagroup: Rework to use same mechanisms as ipahostgroup module · c5e0b1b4
      Thomas Woerner authored
      The ipagroup module was not using the failed and completed items in the dict
      that is returned with api_command. But it was creating add and remove
      lists for users, groups and services. This is not needed if the failures
      "already a member" and "not a member" in the result failures are ignored.
      Only other failures are reported.
      c5e0b1b4
Loading