> I'd like to create a banner for anyone logging into a list of servers
> to see (i.e. Unauthorized access prohibited, you're being watched,
> etc...).
I have a "prettymotd" module. The init.pp reads:
class prettymotd {
file { "/etc/motd":
content => template("prettymotd/motd.erb"),
ensure => present
}
}
and the motd.erb is:-
hostname: <%= fqdn %>
type: <%= operatingsystem %> <%= operatingsystemrelease %>
<%= kernelversion %> <%= kernel %>
hardware: <%= hardwaremodel %>
HTH
Gary
--
Gary Law
Email/Chat googletalk/messenger: gary...@gmail.com
[...]
So, Gary had that pretty much nailed down, but a few bits I would add
as pointers you can ask to expand or read up on yourself:
You should put this in a module, so that it is nicely self-contained,
and include the appropriate class in your nodes. For a single task
like this that isn't going to be much different to doing it without,
but it makes good practice for doing modules when you get to the jobs
that *do* benefit from them.
If you were looking to base it of the existing issue files then I
would take the view that you should copy them into your module, modify
them as required, and then go on.
Regards,
Daniel
--
✉ Daniel Pittman <dan...@rimspace.net>
⌨ dan...@rimspace.net (XMPP)
☎ +1 503 893 2285
♻ made with 100 percent post-consumer electrons