-
Notifications
You must be signed in to change notification settings - Fork 73
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
now inventory plugin cannot return ip_address field #357
Comments
Hello.
Result:
|
@tupyy
so, this inventory plugin have to reference other table( |
To do what the doc says the plugin needs to make another request to snow. Therefore, out of the box, we'll not be able to support what you need. First of all, it needs to be backward compatibility (implementing this will break existing inventory for a lot of users) and second, we need to make the inventory usable (users cannot wait 30min for 10-15k hosts). What I propose to you is to make a reference of ip_address to the table of you choice and use that in your inventory. |
I understood that. We will develop custom script to get address. thanks. |
Thank you. I'll go ahead and close this issue now. Please reopen if you think it is relevant. |
SUMMARY
When using now inventory to get inventory from
cmdb_ci_server
, ip_addres is empty because ip_address is stored in other table(cmdb_ci_ip_address
).https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/configuration-management/concept/class-server.html#d707944e556
ISSUE TYPE
COMPONENT NAME
servicenow.itsm.now
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Oracle Linux 9.3
STEPS TO REPRODUCE
cmdb_ci_server
ansible-inventory -i now.yml --list
EXPECTED RESULTS
return empty ip_address
ACTUAL RESULTS
return not empty ip_address
The text was updated successfully, but these errors were encountered: