On 12 January 2011 19:08, Zman112233 <[email protected]> wrote:

> 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: [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to