Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3925359
D817.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
570 B
Referenced Files
None
Subscribers
None
D817.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 18:21 (12 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2310959
Default Alt Text
D817.diff (570 B)
Attached To
Mode
D817: Provide motd command
Attached
Detach File
Event Timeline
Log In to Comment