4 A Puppet module that can construct files from fragments.
6 Please see the comments in the various .pp files for details
7 as well as posts on my blog at http://www.devco.net/
9 Released under the Apache 2.0 licence
14 If you wanted a /etc/motd file that listed all the major modules
15 on the machine. And that would be maintained automatically even
16 if you just remove the include lines for other modules you could
17 use code like below, a sample /etc/motd would be:
20 Puppet modules on this server:
26 Local sysadmins can also append to the file by just editing /etc/motd.local
27 their changes will be incorporated into the puppet managed motd.
30 # class to setup basic motd, include on all nodes
40 concat::fragment{"motd_header":
42 content => "\nPuppet modules on this server:\n\n",
46 # local users on the machine can append to motd by just creating
48 concat::fragment{"motd_local":
50 ensure => "/etc/motd.local",
55 # used by other modules to register themselves in the motd
56 define motd::register($content="", $order=10) {
63 concat::fragment{"motd_fragment_$name":
64 target => "/etc/motd",
65 content => " -- $body\n"
69 # a sample apache module
71 include apache::install, apache::config, apache::service
73 motd::register{"Apache": }
77 Detailed documentation of the class options can be found in the
82 * Since puppet-concat now relies on a fact for the concat directory,
83 you will need to set up pluginsync = true on the [master] section of your
84 node's '/etc/puppet/puppet.conf' for at least the first run.
85 You have this issue if puppet fails to run on the client and you have
87 "err: Failed to apply catalog: Parameter path failed: File
88 paths must be fully qualified, not 'undef' at [...]/concat/manifests/setup.pp:44".
94 * Provided 0.24.8 support, shell warnings and empty file creation support.
98 * Various patches to improve safety of file operations
103 * Patch to remove hard coded paths relying on OS path
104 * Patch to use file{} to copy the resulting file to the final destination. This means Puppet client will show diffs and that hopefully we can change file ownerships now
109 * Unprivileged user support
113 * Solaris/Nexenta support
114 * Better error reporting
116 **Christian G. Warden**
122 * Support non GNU systems by default
130 * Documentation improvements
134 * Testing improvements and Travis support
136 **Branan Purvine-Riley**
138 * Support Puppet Module Tool better
140 **Dustin J. Mitchell**
142 * Always include setup when using the concat define
146 * Puppet Lint support
148 **Jan Vansteenkiste**
154 R.I.Pienaar / rip@devco.net / @ripienaar / http://devco.net