> -----Original Message-----
> From: Peter Meier [mailto:peter.me...@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 pete

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

Reply via email to