RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1966493 - [RFE] New management module ipaserver
Summary: [RFE] New management module ipaserver
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ansible-freeipa
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: ---
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1973171
TreeView+ depends on / blocked
 
Reported: 2021-06-01 09:34 UTC by Thomas Woerner
Modified: 2021-11-10 01:09 UTC (History)
1 user (show)

Fixed In Version: ansible-freeipa-0.3.6-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1973171 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:45:36 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7294 0 None None None 2021-11-09 18:51:37 UTC
Red Hat Product Errata RHBA-2021:4268 0 None None None 2021-11-09 18:45:49 UTC

Description Thomas Woerner 2021-06-01 09:34:44 UTC
There is a new server management module placed in the plugins folder:

    plugins/modules/ipaserver.py

The server module allows to ensure presence and absence of servers. The
module requires an existing server, the deployment of a new server can
not be done with the module.

Here is the documentation for the module:

    README-server.md

New example playbooks have been added:

    playbooks/server/server-absent-continue.yml
    playbooks/server/server-absent-force.yml
    playbooks/server/server-absent-ignore_last_of_role.yml
    playbooks/server/server-absent-ignore_topology_disconnect.yml
    playbooks/server/server-absent.yml
    playbooks/server/server-hidden.yml
    playbooks/server/server-location.yml
    playbooks/server/server-no-location.yml
    playbooks/server/server-no-service-weight.yml
    playbooks/server/server-not-hidden.yml
    playbooks/server/server-present.yml
    playbooks/server/server-service-weight.yml

New tests for the module:

    tests/server/test_server.yml

Comment 2 Thomas Woerner 2021-06-01 09:38:01 UTC
Here is the upstream PR:

https://github.com/freeipa/ansible-freeipa/pull/541

It is merged already.

Comment 8 Varun Mylaraiah 2021-07-01 08:34:08 UTC
Verified:

ansible-freeipa-0.3.6-3.el8.noarch
ipa-server-4.9.3-1.module+el8.5.0+10565+ae980a94.x86_64

# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.5 Beta (Ootpa)

 TESTS STEP START: ansible_freeipa_tests/server/test_server.py
2021-06-30T14:01:20 ============================= test session starts ==============================
2021-06-30T14:01:20 platform linux -- Python 3.9.5, pytest-3.10.1, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
2021-06-30T14:01:20 cachedir: .pytest_cache
2021-06-30T14:01:20 metadata: {'Python': '3.9.5', 'Platform': 'Linux-4.18.0-193.41.1.el8_2.x86_64-x86_64-with-glibc2.33', 'Packages': {'pytest': '3.10.1', 'py': '1.10.0', 'pluggy': '0.13.1'}, 'Plugins': {'sourceorder': '0.5.1', 'html': '1.22.1', 'metadata': '1.11.0', 'multihost': '3.4'}, 'BUILD_NUMBER': '482', 'BUILD_ID': '482', 'BUILD_URL': 'https://ci-jenkins-csb-idm.apps.ocp4.prod.psi.redhat.com/job/trigger-test-suite-tool/482/', 'NODE_NAME': 'jnlp-trigger-w3qff', 'JOB_NAME': 'trigger-test-suite-tool', 'BUILD_TAG': 'jenkins-trigger-test-suite-tool-482', 'EXECUTOR_NUMBER': '0', 'JENKINS_URL': 'https://ci-jenkins-csb-idm.apps.ocp4.prod.psi.redhat.com/', 'WORKSPACE': '/home/jenkins/workspace/trigger-test-suite-tool'}
2021-06-30T14:01:20 rootdir: /home/jenkins/workspace/trigger-test-suite-tool/ansible-freeipa-tests, inifile:
2021-06-30T14:01:20 plugins: sourceorder-0.5.1, html-1.22.1, metadata-1.11.0, multihost-3.4
2021-06-30T14:01:20 collecting ... collected 18 items
2021-06-30T14:01:20 
2021-06-30T14:17:54 ansible_freeipa_tests/server/test_server.py::Testserver00::test_setup_prerequisite PASSED [  5%]
2021-06-30T14:18:14 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_with_location PASSED [ 11%]
2021-06-30T14:18:25 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_location_reset PASSED [ 16%]
2021-06-30T14:18:35 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_with_nonexisting_location PASSED [ 22%]
2021-06-30T14:18:43 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_nonexisting_server_with_location PASSED [ 27%]
2021-06-30T14:18:53 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_with_weight PASSED [ 33%]
2021-06-30T14:19:05 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_weight_reset PASSED [ 38%]
2021-06-30T14:19:12 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_with_weight_max_outofrange PASSED [ 44%]
2021-06-30T14:19:20 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_with_weight_min_outofrange PASSED [ 50%]
2021-06-30T14:19:30 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_hidden PASSED [ 55%]
2021-06-30T14:19:41 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_not_hidden PASSED [ 61%]
2021-06-30T14:19:49 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_nonexisting_server_with_hidden PASSED [ 66%]
2021-06-30T14:19:55 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_delete_with_force PASSED [ 72%]
2021-06-30T14:20:34 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_delete_with_continue PASSED [ 77%]
2021-06-30T14:26:16 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_delete_without_ignoring_topology_disconnect PASSED [ 83%]
2021-06-30T14:26:42 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_delete_with_ignoring_topology_disconnect PASSED [ 88%]
2021-06-30T14:33:00 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_delete_without_last_of_role PASSED [ 94%]
2021-06-30T14:33:25 ansible_freeipa_tests/server/test_server.py::Testserver::test_server_delete_with_last_of_role PASSED [100%]

Based on the test result, marking the bug VERIFIED.

Comment 10 errata-xmlrpc 2021-11-09 18:45:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (ansible-freeipa bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4268


Note You need to log in before you can comment on or make changes to this bug.