]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
I have no idea if this will work
authorStephen Gran <steve@lobefin.net>
Tue, 21 Apr 2009 23:41:03 +0000 (00:41 +0100)
committerStephen Gran <steve@lobefin.net>
Tue, 21 Apr 2009 23:41:03 +0000 (00:41 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/motd/manifests/init.pp [new file with mode: 0644]
templates/motd.erb [new file with mode: 0644]

diff --git a/modules/motd/manifests/init.pp b/modules/motd/manifests/init.pp
new file mode 100644 (file)
index 0000000..0068a5a
--- /dev/null
@@ -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 (file)
index 0000000..c8928b2
--- /dev/null
@@ -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 -%>