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

[FEATURE] add spacewalk api dynamic inventory script #58735

Open
wants to merge 2 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@jacobsalmela
Copy link

commented Jul 4, 2019

Signed-off-by: Jacob Salmela me@jacobsalmela.com

SUMMARY

Introduces a dynamic inventory script that uses the Spacewalk API (v2.9). This is a different approach than the existing spacewalk.py dynamic inventory script, which uses spacewalk-reports command.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

spacewalk_api.py

ADDITIONAL INFORMATION

This is a dynamic inventory script that uses the Spacewalk API as a source. Spacewalk isn't really being developed anymore, but some people still use it heavily for patching, which makes it a decent source of truth for some.

In addition to getting hosts and groups, I have also included other things like dmidecode information, CPU stuff, and network information.

More to come to expand this script if the PR is merged.

[FEATURE] add spacewalk api dynamic inventory script
Signed-off-by: Jacob Salmela <me@jacobsalmela.com>
@ansibot

This comment has been minimized.

Copy link
Contributor

commented Jul 4, 2019

The test ansible-test sanity --test pylint [explain] failed with 1 error:

contrib/inventory/spacewalk_api.py:11:14: bad-whitespace Exactly one space required after assignment DOCUMENTATION ="""               ^

The test ansible-test sanity --test pep8 [explain] failed with 1 error:

contrib/inventory/spacewalk_api.py:11:16: E225 missing whitespace around operator

click here for bot help

[FIX] fix linter error E225
Signed-off-by: Jacob Salmela <me@jacobsalmela.com>
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.