On Thu, Oct 14, 2010 at 6:48 PM, Jeff McCune <j...@puppetlabs.com> wrote:

> To save you some hassle in the future, I recommend not defining new
> fileserver mount points and instead use a module to distribute the
> files.
>

I wanted to reiterate this. I see a lot of people creating fileserver mount
points, and it really is much much simpler  in terms of management to start
using modules, and take advantage of the automatic file serving they offer.



>
> Puppet master automatically exposes the files directory of a module
> via the fileserver.  More information is available at
> http://docs.puppetlabs.com in the module organization guide.
>
> -Jeff
>
> On Thursday, October 14, 2010, Kikanny <kika...@gmail.com> wrote:
> > I'm pretty sure this is simple, but I just can't get it to work. I
> > have a directory called test (in location /home/server/test) and it
> > has sub directories and other files. I want to copy this directory and
> > all its contents into a location on the client machine. I'm not sure
> > what I'm doing wrong. This is what I have right now.
> >
> > file { "/home/client/test":
> >      ensure  => directory,
> >      owner   => root,
> >      group    => root,
> >      mode    => 644,
> >      source  => "puppet:///abc/test",
> >      recurse => true,
> > }
> >
> > In the fileserver.conf, I have the following:
> >
> > [abc]
> >      path /home/server
> >      allow *
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> > To post to this group, send email to puppet-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
> >
> >
>
> --
> Jeff McCune
> http://www.puppetlabs.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@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-us...@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