Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3770294
motd.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
595 B
Referenced Files
None
Subscribers
None
motd.py
View Options
# -*- coding: utf-8 -*-
# -------------------------------------------------------------
# Salt — MOTD execution module
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Allow to generate MOTD
# License: BSD-2-Clause
# -------------------------------------------------------------
def
get_path
():
os
=
__grains__
[
"os_family"
]
if
os
==
"Debian"
:
return
"/etc/motd.tail"
if
os
==
"FreeBSD"
and
__grains__
[
"osmajorrelease"
]
>=
13
:
return
"/etc/motd.template"
return
"/etc/motd"
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Mon, Nov 25, 19:43 (5 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259844
Default Alt Text
motd.py (595 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment