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

Add inventory cache to the netbox plugin #57644

Open
wants to merge 3 commits into
base: devel
from

Conversation

Projects
None yet
3 participants
@steffann
Copy link
Contributor

commented Jun 10, 2019

SUMMARY

The netbox inventory plugin can be quite slow, especially when config_context is enabled. This
patch adds caching support to the plugin so that delays can be minimised.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

netbox

ADDITIONAL INFORMATION
@ansibot

This comment has been minimized.

steffann added some commits Jun 10, 2019

@FragmentedPacket

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2019

I'm not seeing the caching affect. Can you specify what I need in order for the caching to work?

@steffann

This comment has been minimized.

Copy link
Contributor Author

commented Jun 11, 2019

I'm not seeing the caching affect. Can you specify what I need in order for the caching to work?

The manual is here: https://docs.ansible.com/ansible/latest/plugins/cache.html

I'm using this in my setup in ansible.cfg:

[inventory]
cache = yes
cache_plugin = yaml
cache_connection = .cache/inventory
cache_timeout = 43200

@ansibot ansibot removed the needs_triage label Jun 11, 2019

@FragmentedPacket

This comment has been minimized.

Copy link
Contributor

commented Jun 11, 2019

shipit

@ansibot ansibot added the stale_ci label Jun 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.