theforeman / foreman-ansible-modules

Ansible modules for interacting with the Foreman API and various plugin APIs such as Katello
GNU General Public License v3.0
149 stars 166 forks source link

want_params not working for all host parameters when importing inventory from satellite #1782

Open redy01 opened 1 month ago

redy01 commented 1 month ago
SUMMARY

Only global parameters are fetched during synchronization inventory from satellite server using foreman.yml when hammer host info shows all parameters global and host when listing.

ISSUE TYPE
ANSIBLE VERSION
core 2.15.10
COLLECTION VERSION
KATELLO/FOREMAN VERSION
rubygem-katello-4.7.0.36-1.el8sat.noarch
foreman-3.5.1.24-1.el8sat.noarch
STEPS TO REPRODUCE
EXPECTED RESULTS

Fetch all parameters no matter the source is global or host

ACTUAL RESULTS

Only global parameters are fetched from satellite server

jschewebbn commented 1 month ago

I had a similar problem until I checked the the satellite user getting the inventory had the permission filter "view_params" from the "Parameter" resource. Maybe that will help you?

redy01 commented 1 month ago

I'm using user with admin rights and still get only global params