theforeman / foreman_ansible_inventory

Foreman dynamic inventory script for ansible - Now merged into Ansible itself
GNU General Public License v3.0
70 stars 31 forks source link

Ansible Tower needs a filter #52

Open GoKEV opened 6 years ago

GoKEV commented 6 years ago

When an Ansible Tower server pulls the Satellite inventory, no option currently exists to reduce the returned inventory from “all” servers.

1: This causes significant speed issues when returning large lists

2: this problem also causes issues when Ansible Tower is entitled to $x nodes and Satellite inventory contains > $x. Tower will reject the entire inventory import

3: Satellite often contains records of systems that aren’t relevant (esx hypervisors stored for virt-who)

Rjerrido provided the code in my PR #50 and PR #51 is another good approach. I’d love to see a standardized filter in place sooner than later so it could quickly be built into the UI of Tower.

Fodoj commented 5 years ago

No interest in this feature still? For larger installations pulling all of the hosts every time is very slow. Filtering is a must in such cases.