Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 2010639

Summary: [RFE] New management module automount locations
Product: Red Hat Enterprise Linux 8 Reporter: Varun Mylaraiah <mvarun>
Component: ansible-freeipaAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.6Keywords: FutureFeature, RFE, Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ansible-freeipa-0.4.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-10 13:38:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Varun Mylaraiah 2021-10-05 09:06:25 UTC
There is a new automount location management module placed in the plugins folder:

plugins/modules/ipaautomountlocation.py

This module allows to ensure presence and absence of automount locations
that act as containers for automount onjects in ipa.

Here is the documentation for the module:

README-automountlocation.md

New example playbooks have been added:

playbooks/automount/automount-location-absent.yml
playbooks/automount/automount-location-present.yml

New tests for the module:

tests/automount/test_automountlocation.yml

Comment 6 Varun Mylaraiah 2021-10-17 12:14:15 UTC
Verified

ansible-freeipa-0.4.0-1.el8.noarch

2021-10-17T11:39:07 ============================= test session starts ==============================
2021-10-17T11:39:07 platform linux -- Python 3.9.6, pytest-3.10.1, py-1.10.0, pluggy-1.0.0 -- /usr/bin/python3
2021-10-17T11:39:07 cachedir: .pytest_cache
2021-10-17T11:39:07 metadata: {'Python': '3.9.6', 'Platform': 'Linux-5.11.12-300.fc34.x86_64-x86_64-with-glibc2.33', 'Packages': {'pytest': '3.10.1', 'py': '1.10.0', 'pluggy': '1.0.0'}, 'Plugins': {'metadata': '1.11.0', 'html': '1.22.1', 'sourceorder': '0.5.1', 'multihost': '3.4'}, 'CI': 'true', 'BUILD_NUMBER': '1073', 'BUILD_ID': '1073', 'BUILD_URL': 'https://ci-jenkins-csb-idmops.apps.ocp-c1.prod.psi.redhat.com/job/trigger-test-suite-tool/1073/', 'NODE_NAME': 'permanent-ftrivino-jenkins-big-agent-10', 'JOB_NAME': 'trigger-test-suite-tool', 'BUILD_TAG': 'jenkins-trigger-test-suite-tool-1073', 'EXECUTOR_NUMBER': '4', 'JENKINS_URL': 'https://ci-jenkins-csb-idmops.apps.ocp-c1.prod.psi.redhat.com/', 'WORKSPACE': '/home/fedora/workspace/trigger-test-suite-tool@2'}
2021-10-17T11:39:07 rootdir: /home/fedora/workspace/trigger-test-suite-tool@2/ansible-freeipa-tests, inifile:
2021-10-17T11:39:07 plugins: metadata-1.11.0, html-1.22.1, sourceorder-0.5.1, multihost-3.4
2021-10-17T11:39:07 collecting ... collected 8 items
2021-10-17T11:39:07 
2021-10-17T11:47:16 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_add PASSED [ 12%]
2021-10-17T11:47:25 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_multiple_add PASSED [ 25%]
2021-10-17T11:47:33 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_with_special_char_add PASSED [ 37%]
2021-10-17T11:47:41 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_with_leading_space PASSED [ 50%]
2021-10-17T11:47:47 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_with_empty_name PASSED [ 62%]
2021-10-17T11:47:54 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_multiple_remove PASSED [ 75%]
2021-10-17T11:48:00 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_remove_with_empty_name PASSED [ 87%]
2021-10-17T11:48:08 ansible_freeipa_tests/automount/test_automount.py::TestAutomountLocation::test_automountlocation_remove PASSED [100%]
2021-10-17T11:48:08 
2021-10-17T11:48:08 - generated xml file: /home/fedora/workspace/trigger-test-suite-tool@2/test-suite/junit.xml -
2021-10-17T11:48:08 - generated html file: file:///home/fedora/workspace/trigger-test-suite-tool@2/test-suite/report.html -
2021-10-17T11:48:08 ========================== 8 passed in 540.38 seconds ==========================

Comment 8 errata-xmlrpc 2022-05-10 13:38:24 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-2022:1791