Feature #29590
closednew report template to list all the installed packages
Description
Description of problem:
The customer would like to generate a list of the installed packages for a system or all of them.
Version-Release number of selected component (if applicable):
6.7
How reproducible:
100%
Steps to Reproduce:
1. Install satellite 6.7
2. Create the report template
3. Copy/paste the code below
Actual results:
We don't ship this report on Satellite 6.7
Expected results:
Be able to run this report template and generate the list when necessary
Additional info:
========
---
$ cat host_-_all_installed_packages.erb
<%#
name: Host - All Installed Packages
snippet: false
template_inputs:
- name: hosts
required: false
input_type: user
advanced: false
value_type: plain
resource_type: Katello::ActivationKey
hidden_value: false
model: ReportTemplate
>
< load_hosts(search: input('hosts')).each_record do |host| > report_row(
< host.installed_packages.each do |pkg| ->
<
'Host': host.name,
'Package Name': pkg.name,
'Package NVRA': pkg.nvra,
'Package NVREA': pkg.nvrea
)-%>
<% end >
< end ->
<= report_render -%>
--