Page MenuHomeDevCentral

motd.py
No OneTemporary

# -*- 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

Mime Type
text/x-python
Expires
Mon, Nov 25, 19:00 (10 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2259844
Default Alt Text
motd.py (595 B)

Event Timeline