Satellite 6.7 Reporting -- Variable to report installed version of a specified package on all registered hosts?

Posted on

Hi, I'm trying to write an ERB report template to gather a bunch of necessary data on hosts. I want to have new rows in the report that return the version of a couple different rpms on all hosts registered to my Satellite server, but i can't find the appropriate variable to take care of this.

I am imagining it's something like
'Alacarte Version': host.installed_packages.version('alacarte'),

but i can't find this type of field in the ERB template help section.

Anyone ever accomplished this in the Reporting engine?

Thanks in advance