Project

General

Profile

Feature #29590

new report template to list all the installed packages

Added by Waldirio Pinheiro over 2 years ago. Updated 8 days ago.

Status:
Closed
Priority:
Normal
Category:
Reporting
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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 -%>
--

Associated revisions

Revision b323ceca (diff)
Added by Ian Ballou about 1 month ago

Fixes #29590 - Katello report template for listing host packages (#9487)

History

#1 Updated by Waldirio Pinheiro over 2 years ago

  • Pull request https://github.com/theforeman/community-templates/pull/720 added

#2 Updated by Amir Fefer over 2 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Amir Fefer over 2 years ago

  • Category set to Reporting
  • Project changed from Templates to Foreman

#4 Updated by Eric Helms 3 months ago

  • Status changed from Ready For Testing to New
  • Pull request deleted (https://github.com/theforeman/community-templates/pull/720)

#5 Updated by The Foreman Bot about 1 month ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9487 added

#6 Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases 3.5.0 added

#7 Updated by Anonymous about 1 month ago

  • Status changed from Ready For Testing to Closed

#8 Updated by Ewoud Kohl van Wijngaarden 8 days ago

  • Triaged changed from No to Yes

Also available in: Atom PDF