Re: [Puppet Users] installing packages "the batch mode"

Peter Meier
Tue, 30 Mar 2010 12:23:12 -0000

> Reading some docs I found that is possible to create an array in
> Puppet manifest files. Now my question: How can I use
> an array to install all those packages ? Is there a easy way to do that?
> Package list:  "screen  sysstat  rkhunter  vim-enhanced  wget  w3m
> links  dmidecode  mtr  mutt  rsync  lm_sensors  htop  iperf  ntsysv
> sendmail  sendmail-cf  telnet  nrpe  nagios-plugins-all  xinetd
> munin-node"

package{[''package1'', ''package2'' ]: ensure
=> present }

but note: this does not install all packages in one shot unless #2198
[1] is implemented. However it still makes your manifests much more
readable.

cheers pete

[1] http://projects.reductivelabs.com/issues/2198