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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to