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,
>  >     }
>  >
>  >     if $require {
>  >         Exec ["wget $options -O $title $source"]{
>  >             require => [ Package["wget"], $require ]
>  >         }
>  >     } else {
>  >         Exec ["wget $options -O $title $source"]{
>  >             require => [ Package["wget"] ]
>  >         }
>  >     }
>  > }


or from 0.24.6 on you might be able to simply use the apend function:

http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#appending-to-variables

/me didn't test it...

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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to