Hi, You've got it a bit wrong.
Here is what I think you're trying to do: http://docs.puppetlabs.com/guides/techniques.html#how-can-i-manage-whole-directories-of-files-without-explicitly-listing-the-files I think if you're starting out, you should try something simpler and less likely to destroy your system :) http://docs.puppetlabs.com/learning/manifests.html#resource-declarations For complete file type reference: http://docs.puppetlabs.com/references/stable/type.html#file > content => template("/usr/local/sbin/), That does not work like you think it does. It is for file templates using ERB. For recursive directories you need something like: source => puppet:///module/name/somedirectory Cheers, Den On 23/05/2011, at 20:05, Sumith Sudhakaran <sumit...@gmail.com> wrote: > HI > > How can i copy a directory from puppet master to client > > I have tried this, but its giving error. I am using redhat 5.6 and puppet > 2.6.8 > > file { "/usr": > ensure => "directory", > owner => "root", > group => "root", > mode => 777, > content => template("/usr/local/sbin/), > > Please help me.. > -- > Regards > > Sumith > > -- > 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. -- 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.