-
Notifications
You must be signed in to change notification settings - Fork 98
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
ACI: Adding an ACI connection plugin for communication #25
Labels
Comments
aciguru
added
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
aci
feature
labels
Apr 14, 2020
lhercot
added
new_plugin
and removed
aci
duplicate
This issue or pull request already exists
documentation
Improvements or additions to documentation
labels
Jun 18, 2020
Merged
@netgirard It is still in the works but we have it in our to-do-list |
@aciguru For a nicer playbook you could use anchors and module_defaults. E.g.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ISSUE TYPE
Feature Idea
COMPONENT NAME
ACI
ANSIBLE VERSION
v2.6
SUMMARY
The general idea is that the ACI modules would feel more native and better integrated with how Ansible works. This means that the information/credentials to connect to the APIC is stored in the inventory (using ansible_host, ansible_port, ansible_user and ansible_password) and the playbook tasks only take into account the parameters required for its specific use.
Other benefits of using an ACI connection plugin include:
It would manage the connection and could handle HTTP errors more gracefully
On connection problems it can rebuild the session transparantly
During maintenance or APIC cluster issues the connection plugin would switch between APICs (provides high-availability)
It would centralize connection information per node or per group, keeping credentials out of playbooks
It avoids too many consecutive auth API calls which may result in connection throttling and playbook failure
Currently we do:
A typical playbook would then look much more concise and readable:
The inventory for an ACI cluster would then look like:
This relates to #33887
The text was updated successfully, but these errors were encountered: