From bb078c190ab2c062613d4f26d105f682269af5b3 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Wed, 22 Apr 2009 00:41:03 +0100 Subject: [PATCH] I have no idea if this will work Signed-off-by: Stephen Gran --- modules/motd/manifests/init.pp | 5 +++++ templates/motd.erb | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 modules/motd/manifests/init.pp create mode 100644 templates/motd.erb diff --git a/modules/motd/manifests/init.pp b/modules/motd/manifests/init.pp new file mode 100644 index 00000000..0068a5aa --- /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 00000000..c8928b2d --- /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 -%> -- 2.39.2