Le mercredi 05 août 2009 à 22:53 -0700, robbyt a écrit : > Hello All! > > I would like to automatically add a header to all files/templates that > puppet manages on my servers. Something like "#if you break, my puppet > will fix it!!" > > Is this possible?
Probably by creating a custom type that would works like
header_file { "/etc/myapp/myfile":
owner => blah
group => xxxx
source => "puppet://files/app/myapp/myfile"
}
the original "myfile" not having header of course. See
http://reductivelabs.com/trac/puppet/wiki/PracticalTypes that gives an
example of custom type. Moreover, the example looks like what you want
to do.
Regards,
Nico.
signature.asc
Description: Ceci est une partie de message numériquement signée
