Adventures in Puppet: concat module
Aug 06, 2010, 14:18 (0 Talkback[s])
"R.I. Pienaar has a Puppet module on github called "concat". Its
premise is very simple, it just concatenates fragments of text
together into a particular file.
"I'm sure that a more seasoned Puppet veteran would have had
this running in no time, but since it introduced some new concepts
for me, I thought I'd throw up some notes of how I'm using it. I
was particularly interested in an example usage I saw which lists
the puppet modules a system is using in its /etc/motd, but because
of the way Ubuntu handles constructing the motd, I needed to
slightly rework the example. In Ubuntu, the /etc/motd file is
constructed dynamically when you log in – this is done by
pam_motd which executes the scripts in /etc/update-motd.d/. One of
those scripts (99-footer) will simply append the contents of
/etc/motd.tail to /etc/motd after everything else"