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

Daniel Pittman
Tue, 30 Mar 2010 12:22:47 -0000

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