Max Kamensky
2011-Mar-16 08:54 UTC
[Puppet Users] Spread and sync folder from puppet server to puppet clients
Hello All I''m noob for puppet so don''t get me wrong with this question. For the beginning I''d like to realize the such process. Puppet server (some_files_to_spread) --> Puppet Client (some_files_to_spread) some_files_to_spread = Folder with sub-folders and files *.jpg, *.odt and others non plain text files What is the simplest way to do this? thanks -- regards, Max Kamensky icq: 29258337 skype: maxkamensky -- 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.
Felix Frank
2011-Mar-17 14:26 UTC
Re: [Puppet Users] Spread and sync folder from puppet server to puppet clients
On 03/16/2011 09:54 AM, Max Kamensky wrote:> > Hello All > > I''m noob for puppet so don''t get me wrong with this question. > > For the beginning I''d like to realize the such process. > > Puppet server (some_files_to_spread) --> Puppet Client > (some_files_to_spread) > > some_files_to_spread = Folder with sub-folders and files *.jpg, *.odt > and others non plain text files > > What is the simplest way to do this?Do you have experience rolling simple files? file { "/path/to/file": ensure => present, source => "puppet:///files/path/to/file/on/master" } You can do this for whole trees: file { "/path/to/dir": ensure => directory, source => "puppet:///files/path/to/file/on/master", recurse => true, } You will want to specify owner, group and mode, too, otherwise they are inherited from your puppetmaster. HTH, Felix -- 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.