Replies: 4 comments
-
so here would be an issue that I could see a challenge with, what if someone added a host by hand to this inventory along with its inventory_source? you would need to check all hosts to ensure that doesn't happen. I am not positive if that is what is going on or not, @sean-m-sullivan would probably have a better idea on that. export_diff still needs quite a bit of work to be fully functional and any help with that would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for your reply. On review I realise that I misdiagnosed the behaviour that I was seeing, and also didn't explain it very well. Apologies. I want to use When the For my use case I don't need a listing of hosts in the inventory, but rather only its name, description, kind and organization. Is there any way that I can restrict the lookup that |
Beta Was this translation helpful? Give feedback.
-
The point of export diff is to check the difference between code and what is on controller and remediate that. It is not built to compare 2 different controllers. |
Beta Was this translation helpful? Give feedback.
-
@djdanielsson IMHO the point of The point I am trying to resolve is that |
Beta Was this translation helpful? Give feedback.
-
I am using
controller_export_diff
in a task to create a diff between actual and desired state of a number of controller objects, before using the output to add or delete objects as appropriate. One of the managed objects is a dynamic (GCE) inventory source. When I run this task against a new system, i.e. with out this inventory source, the task takes around a minute. However from the second run, the task takes an extremely long time. I can see on the job container, that it is making a lot of GETs on hosts which are populated from the syncing of this inventory source.Is there any way to include this inventory source in the comparison without the task going through all hosts?
Beta Was this translation helpful? Give feedback.
All reactions