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 -%>
--
Updated by Waldirio Pinheiro over 4 years ago
- Pull request https://github.com/theforeman/community-templates/pull/720 added
Updated by Amir Fefer over 4 years ago
- Status changed from New to Ready For Testing
Updated by Amir Fefer over 4 years ago
- Project changed from Templates to Foreman
- Category set to Reporting
Updated by Eric Helms about 2 years ago
- Status changed from Ready For Testing to New
- Pull request deleted (
https://github.com/theforeman/community-templates/pull/720)
Updated by The Foreman Bot about 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/9487 added
Updated by Anonymous about 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|b323ceca04e37b3958ffa3fc60c098f78098cbfd.
Updated by Ewoud Kohl van Wijngaarden almost 2 years ago
- Triaged changed from No to Yes
Updated by The Foreman Bot over 1 year ago
- Pull request https://github.com/theforeman/foreman/pull/9675 added
Updated by The Foreman Bot over 1 year ago
- Pull request https://github.com/theforeman/foreman/pull/9710 added