Project

General

Profile

Actions

Feature #29590

closed

new report template to list all the installed packages

Added by Waldirio Pinheiro over 4 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Reporting
Target version:
-
Fixed in Releases:
Found in Releases:

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| >
<
host.installed_packages.each do |pkg| ->
<
report_row(
'Host': host.name,
'Package Name': pkg.name,
'Package NVRA': pkg.nvra,
'Package NVREA': pkg.nvrea
)-%>
<% end >
<
end ->
<
= report_render -%>
--

Actions

Also available in: Atom PDF