<pre>
# class to setup basic motd, include on all nodes
class motd {
- concat{"/etc/motd":
+ include concat::setup
+ $motd = "/etc/motd"
+
+ concat{$motd,
owner => root,
group => root,
mode => 644
}
concat::fragment{"motd_header":
+ target => $motd,
content => "\nPuppet modules on this server:\n\n",
- order => 1,
+ order => 01,
}
# local users on the machine can append to motd by just creating
# /etc/motd.local
concat::fragment{"motd_local":
+ target => $motd,
ensure => "/etc/motd.local",
order => 15
}