seen Look for create report template to list hosts with an installed package and borrowed the code from this one. It actually gave me a the needed list. Also works well to send the report to an email address. So to schedule such a report it seems hammer is my only option so managed to send a report using:
hammer report-template schedule --id 215 --inputs="packages=mariadb-server" --mail-to "dummy@email.com" --gzip false
My only problem now is I would like to add another package to the packages argument but I am not able to figure out the syntax. Feels I have tried 100 different methods and all ending up with “Error: Option ‘–inputs’: Value must be defined as a comma-separated list of key=value or valid JSON…”
Can anyone help?
Should be something like (all below obviously fails):
hammer report-template schedule --id 215 --inputs="packages=mariadb-server,mysql-server" --mail-to "dummy@email.com" --gzip false
hammer report-template schedule --id 215 --inputs="packages='mariadb-server,mysql-server'" --mail-to "dummy@email.com" --gzip false
hammer report-template schedule --id 215 --inputs='packages="mariadb-server,mysql-server"' --mail-to "dummy@email.com" --gzip false