Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New inventory plugin #1231

Merged
merged 2 commits into from May 14, 2024
Merged

New inventory plugin #1231

merged 2 commits into from May 14, 2024

Conversation

t-woerner
Copy link
Member

@t-woerner t-woerner commented May 3, 2024

The inventory plugin compiles a dynamic inventory from IPA domain, filters servers by role(s).

Usage:

Create yml file, for example freeipa.yml:

---
plugin: freeipa
server: server.ipa.local
ipaadmin_password: SomeADMINpassword
verify: ca.crt

Get compiled inventory:

ansible-inventory -i freeipa.yml --graph

@t-woerner t-woerner force-pushed the inventory_plugin branch 2 times, most recently from 62b10ae to 36725f8 Compare May 3, 2024 17:02
README-inventory-plugin-freeipa.md Outdated Show resolved Hide resolved
README-inventory-plugin-freeipa.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@varunmylaraiah varunmylaraiah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t-woerner
Thank you for the pull request.
In the example playbook, the "address" variable is used instead of "server." Kindly update it accordingly.

@t-woerner t-woerner force-pushed the inventory_plugin branch 6 times, most recently from 0782c4d to 9c51295 Compare May 10, 2024 10:25
Copy link
Collaborator

@varunmylaraiah varunmylaraiah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes LGTM

README.md Outdated
Comment on lines 473 to 477
Inventory plugins in plugin/inventory
=====================================

* [freeipa](README-inventory-plugin-freeipa.md)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last line is related to modules and not the inventory plugin.

Either this section is moved after it, or a new section "Writing new modules" is added here.

The inventory plugin compiles a dynamic inventory from IPA domain, filters
servers by role(s).

Usage:

Create yml file, for example `freeipa.yml`:

    ---
    plugin: freeipa
    server: server.ipa.local
    ipaadmin_password: SomeADMINpassword
    verify: ca.crt

Get compiled inventory:

    ansible-inventory -i freeipa.yml --graph
This fixes a bad tests if offline is not set:
utils/build-galaxy-release.sh: line 130: [: -ne: unary operator expected
Copy link
Member

@rjeffman rjeffman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@rjeffman rjeffman merged commit 2166a9f into freeipa:master May 14, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants