Dear community,
I have a problem to use puppet chocolatey module: https://forge.puppet.com/puppetlabs/chocolatey in foreman. I think i do not have enough know-how in foreman and puppet. I would like to use this module to install software on windows clients, and I see, that it should be easy, I could do something like this:
package { ‘notepadplusplus’:
ensure => installed|latest|‘1.0.0’|absent,
provider => ‘chocolatey’,
install_options => [’-pre’,’-params’,’"’,‘param1’,‘param2’,’"’],
uninstall_options => [’-r’],
source => ‘https://myfeed.example.com/api/v2’,
package_settings => { ‘verbose’ => true, ‘log_output’ => true, },
}
but i can’t find out how. It would be great if I could define this on the foreman GUI somewhere, but under the chocolatey class i do not see any smart class parameter where i could do this. I have googled much but I’m stuck. I can now understand, that under smart class parameters tab in foreman GUI, only these parameters are visible, which are defined in puppet params.pp. And I see, that in this puppet module there is no possibility to do this installation of any software directly. So I think, that I must create some classes/param’s, somewhere, but I can’t find where and how.
So my question is, could somebody give me a hint, how to do this package installation via the foreman GUI?
Thank you!
Regards:
Matyas