Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F14039859
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
Fri, Nov 28, 17:37 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3170918
Default Alt Text
motd.py (595 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment