From: Stephen Gran Date: Tue, 21 Apr 2009 23:41:03 +0000 (+0100) Subject: I have no idea if this will work X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=bb078c190ab2c062613d4f26d105f682269af5b3;p=mirror%2Fdsa-puppet.git I have no idea if this will work Signed-off-by: Stephen Gran --- diff --git a/modules/motd/manifests/init.pp b/modules/motd/manifests/init.pp new file mode 100644 index 000000000..0068a5aae --- /dev/null +++ b/modules/motd/manifests/init.pp @@ -0,0 +1,5 @@ +class motd { + file { "/etc/motd": + content => template("motd.erb") ; + } +} diff --git a/templates/motd.erb b/templates/motd.erb new file mode 100644 index 000000000..c8928b2d5 --- /dev/null +++ b/templates/motd.erb @@ -0,0 +1,6 @@ +This device is for authorized users only. All traffic on this device +is monitored and will be used as evidence for prosecutions. + +<% if File.exists?("/etc/puppet/modules/motd/files/$fqdn/motd-footer -%> +<% File.open("/etc/puppet/modules/motd/files/$fqdn/motd-footer").read -%> +<% end -%>