example42 / puppet-yum

Puppet module for Yum
Other
43 stars 116 forks source link

"options" feature is not working #51

Closed LinguineCode closed 9 years ago

LinguineCode commented 10 years ago

Hey, thanks for this awesome module, I use it on all of my EL-based machines.

I recently had a need to exclude a package via yum configs, so I tried using yum::options but I can't get it to work. I tried looking through your code to figure it out but ultimately ended up here to ask you for your help.

This is my hiera code:


---
classes:
 - yum

yum::options:
 - "exclude=cloud-init"
alvagante commented 10 years ago

The options parameter in (all) Example42 modules does not manage naything auomatically. It's an open parameter where you can place a hash with any kind of data and you are supposed to use that hash in a custom template to many any possible configuration. For more info on this usage pattern look at the "Overrides and Customization" paragraph of https://github.com/example42/Example42-documentation/blob/master/ModulesUsage.md

If you want(can) place the exclude option in a specific repo file you can use the https://github.com/example42/puppet-yum/blob/master/manifests/managed_yumrepo.pp define.

shellfu commented 9 years ago

Closing this as it's a non-issue.