I am trying to set puppet up to manage a directory of files, in this particular case for bacula. Is there any way to get puppet to copy all of the files in the directory to the destination machine? I''ve tried setting recurse => true, and using wild cards, but so far no luck. Any suggestions short of specifying each file manually? -- Matt ********************************************************************** NOTICE: This e-mail (and any attachments) may contain PRIVILEGED OR CONFIDENTIAL information and is intended only for the use of the specific individual(s) to whom it is addressed. It may contain information that is privileged and confidential under state and federal law. This information may be used or disclosed only in accordance with law, and you may be subject to penalties under law for improper use or further disclosure of the information in this e-mail and its attachments. If you have received this e-mail in error, please immediately notify the person named above by reply e-mail, and then delete the original e-mail. Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> I am trying to set puppet up to manage a directory of files, in this > particular case for bacula. Is there any way to get puppet to copy all > of the files in the directory to the destination machine? I''ve tried > setting recurse => true, and using wild cards, but so far no luck. Any > suggestions short of specifying each file manually?code snippet of what you''d like to do? 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
> -----Original Message----- > From: Peter Meier [mailto:peter.meier@immerda.ch] > Sent: Friday, May 01, 2009 5:17 AM > To: Matt Marshall > Cc: puppet-users@googlegroups.com > Subject: Re: [Puppet Users] Question regarding directories > > Hi > > > I am trying to set puppet up to manage a directory of files, in this > > particular case for bacula. Is there any way to get puppet to copy > all > > of the files in the directory to the destination machine? I've tried > > setting recurse => true, and using wild cards, but so far no luck. > Any > > suggestions short of specifying each file manually? > > code snippet of what you'd like to do? > > cheers petefile { "bacula-clients": name => "/etc/bacula/clients/*", owner => "root", recurse => true, group => "root", mode => 655, source => "puppet:///bacula/clients/*", notify => Service[bacula], } Basically I want all of the client files I drop into puppet to be transferred to the destination machine, without having to specify each file individually(There are about 4 dozen of them). I'm also trying to avoid having just one monster Bacula file. I have also tried it without the *. Any suggestions? On a side note, anyone know how to get to Outlook to bottom reply? -- Matt Marshall Linux System Administrator 602-771-4377 ********************************************************************** NOTICE: This e-mail (and any attachments) may contain PRIVILEGED OR CONFIDENTIAL information and is intended only for the use of the specific individual(s) to whom it is addressed. It may contain information that is privileged and confidential under state and federal law. This information may be used or disclosed only in accordance with law, and you may be subject to penalties under law for improper use or further disclosure of the information in this e-mail and its attachments. If you have received this e-mail in error, please immediately notify the person named above by reply e-mail, and then delete the original e-mail. Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi> [...] > Basically I want all of the client files I drop into puppet to be > transferred to the destination machine, without having to specify > each file individually(There are about 4 dozen of them). I''m also > trying to avoid having just one monster Bacula file. > I have also tried it without the *. Any suggestions? > On a side note, anyone know how to get to Outlook to bottom reply?this should work, I do that a lot. But note: Until 0.25 copying large or a large amount of files might cause heavy memory usage! file { "/etc/bacula/clients/": recurse => true, source => "puppet:///bacula/clients/", notify => Service[bacula], owner => "root", group => "root", mode => 655; } basically you don''t have to use the wild-card. Neither for Source nor for target. For sure you can add a path alias as well as you had. 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
Hi>> this should work, I do that a lot. But note: Until 0.25 copying large >> or a large amount of files might cause heavy memory usage! >> >> file { "/etc/bacula/clients/": >> recurse => true, >> source => "puppet:///bacula/clients/", >> notify => Service[bacula], >> owner => "root", group => "root", mode => 655; >> } >> >> basically you don''t have to use the wild-card. Neither for Source nor >> for target. For sure you can add a path alias as well as you had. >> >> cheers pete > > That works out great except for copying all the .svn files over, but > I can live with that. Thanks a ton.http://reductivelabs.com/trac/puppet/wiki/TypeReference#file ignore is your friend: ignore => ''\.svn'' 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---