On Mon, Sep 28, 2009 at 7:57 AM, [email protected] <[email protected]> wrote: > > Nigel Kersten wrote: >> On Mon, Sep 28, 2009 at 7:50 AM, [email protected] >> <[email protected]> wrote: >>> Hi All, >>> >>> I get the feeling I'm being really dumb here but hey, if you don't ask... ;) >>> >>> I'm setting up a puppet install for about 80 or so servers and taking a >>> "softly softly" approach by starting with Syslog-ng and stunnel configs. >>> >>> I want to push out a directory of files to /etc/stunnel that includes >>> the config and pems for each client. Is it posible to push an entire >>> directory, or do I have to specify each file (as I'm currently doing in >>> my dev environment!)? >> >> http://reductivelabs.com/trac/puppet/wiki/TypeReference#file >> >> Have a look at the "recurse" attribute. > > I knew it had to be possible! > > So if I set the manifest as follows: > > file{ "/path/to/dir": > source=>"/path/to/source/dir" > recurse=>true > ... > } > > then it should work?
Yep. Note that if you want to get rid of files in that location that aren't in the source, you'll need to add purge => true. > > Thanks, > > M. > > > > -- nigel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
