Project

General

Profile

Actions

Feature #29590

closed

new report template to list all the installed packages

Added by Waldirio Pinheiro about 4 years ago. Updated 11 months 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 #1

Updated by Waldirio Pinheiro about 4 years ago

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

Updated by Amir Fefer almost 4 years ago

  • Status changed from New to Ready For Testing
Actions #3

Updated by Amir Fefer almost 4 years ago

  • Project changed from Templates to Foreman
  • Category set to Reporting
Actions #4

Updated by Eric Helms over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

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

Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 3.5.0 added
Actions #7

Updated by Anonymous over 1 year ago

  • Status changed from Ready For Testing to Closed
Actions #8

Updated by Ewoud Kohl van Wijngaarden over 1 year ago

  • Triaged changed from No to Yes
Actions #9

Updated by The Foreman Bot about 1 year ago

  • Pull request https://github.com/theforeman/foreman/pull/9675 added
Actions #10

Updated by The Foreman Bot 11 months ago

  • Pull request https://github.com/theforeman/foreman/pull/9710 added
Actions

Also available in: Atom PDF