Hello,
I would like create a custom report template to list hosts with defined installed packages given in input field (“packages filters”, like there is “hosts filters” input in several reports).
For information, I use this sort of command with hammer while waiting for a better solution:
hammer host list --search 'installed_package ~pkg-name'
Having ability to generate reports with the version of the package in a collumn would be great.
Thank you for your help.
For this to work, you need to have a template input called packages (you can add it whilst creating a template). As its value you need to specify a comma-separated list of packages, e.g:
I was thinking more of a repository that would contain templates that are not included with The foreman by default, where users could share reports templates they use.
Well, if users will contribute there it may reduce posts here since the answer is probably can be found in that repo… For it me makes sense, but @tbrisker ^^
Hi all, sorry for resurrecting an old thread, but I’m trying to get the packages on my hosts and everything is pointing to “installed_packages” doesn’t exist. For example, if I try this via hammer:
hammer host list --search ‘installed_package ~pkg-name’
I get the message:
Field ‘installed_package’ not recognized for searching!
Looks like installed packages is part of Katello, which is why I’m missing it: I’m on a stand-alone foreman instance. I guess I need to figure out how to migrate.
Unfortunately no in-place migration, so you need to setup a new environment ans switch systems over. I know it is more complex in reality, but as a short hint for you to look for.
I have done the setup of redhat satellite version 6.13 wherein i want to generate an valid list of report based on all hosts on below scenario:-
1] List of all host which are patch and non-patch. [including data and its pie chart]
2] Show list of patching done and not done based on all hosts patching status from point 1