I would consider using something like hiera and loading the packages from a 
YAML file. It is trivial to convert your existing file to YAML.

On Friday, March 13, 2015 at 10:15:07 PM UTC+11, Alex Miroshnik wrote:
>
> Hi Guys, 
>
> I need to install multiple packages on the Ubuntu 14.0.4 using puppet. All 
> packages are listed in the file (about 100 packages) one package name on 
> the row. Is this possible? If it is possible, could you please give me a 
> hint how to do this.
> I know  I can specify the array of the packages:
>
> $pkg_list = [ "pkg1", "pkg2", "pkg3" ]
> package { $pkg_list: ensure => "installed" }
>
> but this is not my case as I have quite a few packages in the list.
>
> Thank you in advance!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/819a599f-9543-4524-aee9-195651780e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to