Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3918924
D405.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D405.diff
View Options
diff --git a/roles/shellserver/motd/files/eglide b/roles/core/motd/files/eglide
rename from roles/shellserver/motd/files/eglide
rename to roles/core/motd/files/eglide
diff --git a/roles/shellserver/motd/init.sls b/roles/core/motd/init.sls
rename from roles/shellserver/motd/init.sls
rename to roles/core/motd/init.sls
--- a/roles/shellserver/motd/init.sls
+++ b/roles/core/motd/init.sls
@@ -1,19 +1,19 @@
# -------------------------------------------------------------
# Salt — MOTD
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-# Project: Eglide
+# Project: Nasqueron
# Created: 2016-04-10
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
motd:
file.managed:
- {% if grains['os'] == 'FreeBSD' %}
- - name: /etc/motd
- {% elif grains['os'] == 'Debian' %}
+ {% if grains['os'] == 'Debian' or grains['os'] == 'Ubuntu' %}
- name: /etc/motd.tail
+ {% else %}
+ - name: /etc/motd
{% endif %}
- - source: salt://roles/shellserver/motd/files/{{ grains['id'] }}
+ - source: salt://roles/core/motd/files/{{ grains['id'] }}
# Fixes T858
get_rid_of_scaleway_motd:
diff --git a/top.sls b/top.sls
--- a/top.sls
+++ b/top.sls
@@ -11,6 +11,7 @@
- roles/core/rc
- roles/core/hostname
- roles/core/network
+ - roles/core/motd
'eglide':
- roles/shellserver/users
- roles/shellserver/userland-software
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 08:59 (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2309295
Default Alt Text
D405.diff (1 KB)
Attached To
Mode
D405: Core: generalize MOTD
Attached
Detach File
Event Timeline
Log In to Comment