summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2018-04-03 19:27:50 +0200
committerJan Dittberner <jandd@cacert.org>2018-04-03 19:27:50 +0200
commit3f9c111783723806d834ba441eab2f3ea36b3657 (patch)
treef13c1736a003cbd9b6b1419b5403754b2fbf5462
parent7be27e76e2dea6dca19e0ee6677fed858ec29a08 (diff)
downloadcacert-puppet-3f9c111783723806d834ba441eab2f3ea36b3657.tar.gz
cacert-puppet-3f9c111783723806d834ba441eab2f3ea36b3657.tar.xz
cacert-puppet-3f9c111783723806d834ba441eab2f3ea36b3657.zip
Add CAcert/Puppet snippet for login message
-rw-r--r--sitemodules/profiles/files/base/motd-puppet.sh16
-rw-r--r--sitemodules/profiles/manifests/base.pp8
2 files changed, 24 insertions, 0 deletions
diff --git a/sitemodules/profiles/files/base/motd-puppet.sh b/sitemodules/profiles/files/base/motd-puppet.sh
new file mode 100644
index 0000000..1223f02
--- /dev/null
+++ b/sitemodules/profiles/files/base/motd-puppet.sh
@@ -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
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index 0c7ecf6..b4b3864 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -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',
+ }
}