Ah, is it this bit you're referring to? 41 if $require { 42 Exec ["S3 file $name"] { 43 require +> $require, 44 } 45 }
So that basically adds a require to the exec {} if $require exists. $require exists if you specify require => File["packages directory"], when calling the define. It's a cleaner way then how i've done it. Will try that. Cheers, Matt 2009/4/17 Robin Sheat <ro...@kallisti.net.nz> > > On Friday 17 April 2009 19:44:53 Matt wrote: > > The s3get function is unable to take a require as it does not support it. > > However, I was able to put a require on the underlying Exec and just pass > > in a variable to it, so that did work :-) > > If you have a look at the sample .pp file I included, you'll see how to make > require work right (at least, I think it's right - it works :) in a custom > define. > > -- > Robin <ro...@kallisti.net.nz> JabberID: <eyth...@jabber.kallisti.net.nz> > http://www.kallisti.net.nz/blog ||| http://identi.ca/eythian > > PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8 7175 14D3 6485 A99C EB6D > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---