Am 16.03.2009 um 13:28 schrieb Keith Edmunds: > > I have a longish list of packages defined as: > > $packagelist = [ > "autoconf", > "autogen", > "automake", > "autotools-dev", > "bison", > ...] > > They are installed with: > > package { $packagelist: > alias => "wspkgs", > ensure => latest, > require => xxx > } > > Puppet seems to declare the alias for each individual package, so I > get > the following error: > > info: /Package[xterm]: Adding aliases "wspkgs" > info: /Package[build-essential]: Adding aliases "wspkgs" > debug: Reraising build-essential can not create alias wspkgs: object > already exists > at /etc/puppet/modules/workstation/manifests/init.pp:121
It does, as puppet will apply all 3 parameters (alias, ensure and require) to each and every entry in the array, which fails at the second element because the aiasl is already taken. > I want to be able to do a "require => Package["wspkgs"]. How can I > achieve > that? One way would be to put all this in a class and do a "require => Class["my_packages"]" or something like that, but I don't think it's very "puppety". I think the "prettier" way would be to add requires only as needed, and not on a loosely pieced together collection of packages. BR, Felix Schäfer --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---