Am 19.04.2016 um 02:47 schrieb J.T. Conklin: > What strategies do you use for "boring" modules so you're not > overwhelmed by hundreds of small boilerplate modules?
I use a simple module with one class for mass-installing packages and another one for mass-uninstalling, like: class linux_base::install ($packages = undef) { $packages.each |String $pkg| { package { $pkg: ensure => latest, } } } where $packages is an array of package names (strings), which can easily be provided for each (group of) host(s) via Hiera. The ::uninstall class has "purge" instead of "latest". Of course, input array for both classes must be mutually exclusive, if both are used at the same time. HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach *Tel*: +49 2226 1596666 (Ansage) 1149 *Email*: d...@recommind.com <mailto:d...@recommind.com> *Skype*: dirk.heinrichs.recommind www.recommind.com <http://www.recommind.com> -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/57178BA2.6020801%40recommind.com. For more options, visit https://groups.google.com/d/optout.