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" Thanks!!! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nicolas Szalay
2010-Mar-30 12:19 UTC
Re: [Puppet Users] installing packages "the batch mode"
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.
Daniel Pittman
2010-Mar-30 12:22 UTC
Re: [Puppet Users] installing packages "the batch mode"
Darvin Denmian <darvin.denmian@gmail.com> writes:> currently I''m using the following lines to install a lot of packges > using Puppet: > > package {"screen": ensure => present } > package {"sysstat": 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?Yes. The documentation showing how is here: http://docs.puppetlabs.com/guides/language_tutorial.html Specifically: package { ["screen", "sysstat"]: ensure => present } Regards, Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Darvin Denmian
2010-Mar-30 12:24 UTC
Re: [Puppet Users] installing packages "the batch mode"
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. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
> Without success :(what is the error you get? can you be a bit more verbose? cheers pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Darvin Denmian
2010-Mar-30 13:37 UTC
Re: [Puppet Users] installing packages "the batch mode"
Hello all ! I tried the following lines : $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", "httpd"] package { $packs: ensure => present } and everything worked fine! Thanks ! On Tue, Mar 30, 2010 at 9:30 AM, Peter Meier <peter.meier@immerda.ch> wrote:>> Without success :( > > what is the error you get? can you be a bit more verbose? > > cheers pete > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.