Synchronization methods of a file with Puppet

Usually, to synchronize a file with remote hosts, using puppet, one would use the following pattern: file { "/etc/init.d/pvfs2-server": owner => root, group => root, mode => 755, source => "puppet:///files/pvfs2-server" } (using “source” to copy data as-is, and using “template(“filename”) to use a template structure as data). Or, if one wishes to directly set the content of the target file: file { "/etc/init.d/pvfs2-server": owner => root, group => root, mode => 755, source => "puppet:///files/pvfs2-server" } Please note that on the first line, for example ‘file { “/etc/mpd.conf”:’), the “/etc/mpd.conf” is a merge of two functionalities/concepts: Usually, the syntax is clear and simple: file { mon_fichier_mpd_conf: path => "/etc/mpd.conf", [...] } The first line is about the resource description. Its goal is to be able to reference to it a little later from another resources (Notify[], etc.). By putting directly the file path and name (I think it’s identified ...(Read More)