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-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.
Nvm. I fixed it. On Oct 14, 2:58 pm, 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-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.
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. 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 <kikanny@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-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. > >-- 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-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.
On Thu, Oct 14, 2010 at 6:48 PM, Jeff McCune <jeff@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 <kikanny@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-users@googlegroups.com. > > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.