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

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to