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

Darvin Denmian
Tue, 30 Mar 2010 12:24:02 -0000

Hello Nicolas,

I''ll try this solution!

I tried something like:

$packs =
["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 { $packs:
   ensure => present
}

Without success :(

2010/3/30 Nicolas Szalay <nszalay@qualigaz.com>:
> Le mardi 30 mars 2010 à 09:12 -0300, Darvin Denmian a écrit :
>> Hello,
>>
>> currently I''m using the following lines to install a lot of
packges
>> using Puppet:
>>
>>    package {"screen": ensure => present }
>>    package {"sysstat": ensure => present }
>>    package {"rkhunter": ensure => present }
>>    package {"vim-enhanced": ensure => present }
>>    package {"wget": ensure => present }
>>    package {"w3m": ensure => present }
>>    package {"links": ensure => present }
>>    package {"dmidecode": ensure => present }
>>    package {"mtr": ensure => present }
>>    package {"mutt": ensure => present }
>>    package {"rsync": ensure => present }
>>    package {"lm_sensors": ensure => present }
>>    package {"htop": ensure => present }
>>    package {"iperf": ensure => present }
>>    package {"ntsysv": ensure => present }
>>    package {"sendmail": ensure => present }
>>    package {"sendmail-cf": ensure => present }
>>    package {"telnet": ensure => present }
>>    package {"nrpe": ensure => present }
>>    package {"nagios-plugins-all": ensure => present }
>>    package {"xinetd": ensure => present }
>>    package {"munin-node": ensure => present }
>>
>> 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"
>
> did you try :
>
> package { ["screen", "sysstat", .... ,
"munin-node"]:
>     ensure => present
> }
>
> ?
>
> Nico.