Page MenuHomeDevCentral

D817.id2109.diff
No OneTemporary

D817.id2109.diff

diff --git a/roles/core/motd/files/motd b/roles/core/motd/files/motd
new file mode 100644
--- /dev/null
+++ b/roles/core/motd/files/motd
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ -f /etc/motd ]; then
+ cat /etc/motd
+else
+ echo "No MOTD."
+fi
diff --git a/roles/core/motd/init.sls b/roles/core/motd/init.sls
--- a/roles/core/motd/init.sls
+++ b/roles/core/motd/init.sls
@@ -19,3 +19,8 @@
get_rid_of_scaleway_motd:
file.absent:
- name: /etc/update-motd.d/50-scw
+
+/usr/local/bin/motd:
+ file.managed:
+ - source: salt://roles/core/motd/files/motd
+ - mode: 755

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 04:01 (17 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2310959
Default Alt Text
D817.id2109.diff (570 B)

Event Timeline