lists@truthisfreedom.org.uk
2009-Sep-28 14:50 UTC
[Puppet Users] push a directory of files as part of a manifest?
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!)? Thanks in advance, M. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2009-Sep-28 14:54 UTC
[Puppet Users] Re: push a directory of files as part of a manifest?
On Mon, Sep 28, 2009 at 7:50 AM, lists@truthisfreedom.org.uk <lists@truthisfreedom.org.uk> 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. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
lists@truthisfreedom.org.uk
2009-Sep-28 14:57 UTC
[Puppet Users] Re: push a directory of files as part of a manifest?
Nigel Kersten wrote:> On Mon, Sep 28, 2009 at 7:50 AM, lists@truthisfreedom.org.uk > <lists@truthisfreedom.org.uk> 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? Thanks, M. --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Nigel Kersten
2009-Sep-28 15:05 UTC
[Puppet Users] Re: push a directory of files as part of a manifest?
On Mon, Sep 28, 2009 at 7:57 AM, lists@truthisfreedom.org.uk <lists@truthisfreedom.org.uk> wrote:> > Nigel Kersten wrote: >> On Mon, Sep 28, 2009 at 7:50 AM, lists@truthisfreedom.org.uk >> <lists@truthisfreedom.org.uk> 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 puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---