Re: [Puppet Users] How can i copy a directory

2011-05-23 Thread Adam Heinz
On Mon, May 23, 2011 at 10:08 AM, Aaron Grewell wrote: > You'll have to copy the entire contents of /usr into the Puppet tree to do > this, you can't serve it in place.  I wouldn't do what you're doing anyway. > Puppet is great for serving config files but for serving all of /usr I'd > choose eith

Re: [Puppet Users] How can i copy a directory

2011-05-23 Thread Aaron Grewell
You'll have to copy the entire contents of /usr into the Puppet tree to do this, you can't serve it in place. I wouldn't do what you're doing anyway. Puppet is great for serving config files but for serving all of /usr I'd choose either NFS or rsync and call your sync script from Puppet. On May 23

Re: [Puppet Users] How can i copy a directory

2011-05-23 Thread Sumith Sudhakaran
Hi, Now i am getting error like: err: /Stage[main]//File[/usr/local/sbin]: Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: Not authorized to call search on /file_metadata/usr/local/sbin with {:recurse=>true, :links=>"manage", :checksum_type=>"md5"} On Mon, Ma

Re: [Puppet Users] How can i copy a directory

2011-05-23 Thread Denmat
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

Re: [Puppet Users] How can i copy a directory

2011-05-23 Thread Nathan Clemons
Try looking into the recurse => true parameter. -- Nathan Clemons http://www.livemocha.com The worlds largest online language learning community On Mon, May 23, 2011 at 3:05 AM, Sumith Sudhakaran wrote: > HI > > How can i copy a directory from puppet master to client > > I have tried this, but

[Puppet Users] How can i copy a directory

2011-05-23 Thread Sumith Sudhakaran
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