Add CAcert/Puppet snippet for login message
authorJan Dittberner <jandd@cacert.org>
Tue, 3 Apr 2018 17:27:50 +0000 (19:27 +0200)
committerJan Dittberner <jandd@cacert.org>
Tue, 3 Apr 2018 17:27:50 +0000 (19:27 +0200)
sitemodules/profiles/files/base/motd-puppet.sh [new file with mode: 0644]
sitemodules/profiles/manifests/base.pp

diff --git a/sitemodules/profiles/files/base/motd-puppet.sh b/sitemodules/profiles/files/base/motd-puppet.sh
new file mode 100644 (file)
index 0000000..1223f02
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+cat <<EOD
+  ____    _                    _   
+ / ___|  / \    ___ ___  _ __ | |_ 
+| |     / _ \  / __/ _ \| '__|| __|
+| |___ / ___ \| (_|  __/| |   | |_ 
+ \____/_/   \_\\___\___||_|    \__|
+
+This system is managed by Puppet. Access to the system is restricted. Please
+see the Puppet definitions and Infrastructure documentation for more
+information.
+
+https://infradocs.cacert.org/
+https://git.cacert.org/gitweb/?p=cacert-puppet.git
+EOD
index 0c7ecf6..b4b3864 100644 (file)
@@ -163,4 +163,12 @@ class profiles::base (
     mode   => '0644',
     source => 'puppet:///modules/profiles/base/resolv.conf',
   }
+
+  file { '/etc/update-motd.d/20-puppetinfo':
+    ensure => file,
+    owner  => 'root',
+    group  => 'root',
+    mode   => '0755',
+    source => 'puppet:///modules/profiles/base/motd-puppet.sh',
+  }
 }