[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread Peter Meier
Hi > I'm still on 0.23.2 for some time. Planning the upgrade at the moment. then it might be worth witing for 0.25.0 imho... cheers pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread Peter Meier
Hi > I'm still on 0.23.2 for some time. Planning the upgrade at the moment. then it might be worth witing for 0.25.0 imho... cheers pete --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To pos

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread robert.gstoehl
I'm still on 0.23.2 for some time. Planning the upgrade at the moment. On Jul 15, 10:09 am, David Schmitt wrote: > robert.gstoehl wrote: > > Seems to work so far, thanks. What happens when a $require is passed > > to the definition which contains an array? > > > require => [ Package["wget"], $re

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread David Schmitt
robert.gstoehl wrote: > Seems to work so far, thanks. What happens when a $require is passed > to the definition which contains an array? > > require => [ Package["wget"], $require ] > > My quick test (printing out $require via a notify) indicate that only > the first item of the array is includ

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread robert.gstoehl
Hm, with --debug it seems like all the dependencies, even an array of them, get passed to the nested exec. Voodoo :) Thanks for your help. On Jul 15, 9:55 am, "robert.gstoehl" wrote: > Seems to work so far, thanks. What happens when a $require is passed > to the definition which contains an arra

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread robert.gstoehl
Seems to work so far, thanks. What happens when a $require is passed to the definition which contains an array? require => [ Package["wget"], $require ] My quick test (printing out $require via a notify) indicate that only the first item of the array is included. Is there a way to merge arrays?

[Puppet Users] Re: custom definitions require and +>

2009-07-14 Thread Peter Meier
Hi > > define wget($source, $options = "", $unless = "") { > > include pkg::virtual_packages > > realize (Package["wget"]) > > exec {"wget $options -O $title $source": > > path=> "/usr/bin:/opt/csw/bin", > > unless => "$unless", > > timeout => 18000

[Puppet Users] Re: custom definitions require and +>

2009-07-13 Thread David Schmitt
robert.gstoehl wrote: > I'm trying to get the dependencies right: > > define wget($source, $options = "", $unless = "") { > include pkg::virtual_packages > realize (Package["wget"]) > exec {"wget $options -O $title $source": > path=> "/usr/bin:/opt/csw/bin", > unle