Page MenuHomeDevCentral

Print MOTD through OpenSSH when needed
ClosedPublic

Authored by dereckson on Oct 29 2017, 19:42.
Tags
None
Referenced Files
F10927483: D1130.id2885.diff
Tue, Aug 5, 12:43
F10927272: D1130.id2886.diff
Tue, Aug 5, 12:41
F10927116: D1130.id2887.diff
Tue, Aug 5, 12:39
F10927099: D1130.id2889.diff
Tue, Aug 5, 12:39
Unknown Object (File)
Mon, Aug 4, 22:58
Unknown Object (File)
Mon, Aug 4, 22:25
Unknown Object (File)
Mon, Aug 4, 06:19
Unknown Object (File)
Sun, Aug 3, 20:24
Subscribers
None

Details

Summary

This change introduces in the Jinja2 map a new capabilities
dictionary to explain what an OS/distribution does or doesn't not.

PrintMotd will be set at yes or no according the MOTD-printed-at-login
capability.

Test Plan

Ensure Debian receives a PrintMotd no, and FreeBSD a PrintMotd yes.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
sshd-motd
Build Status
Buildable 1780
Build 2028: arc lint + arc unit

Event Timeline

Protect yes/no to avoid substitution by a boolean

Move to template (quote count: 1)

Simplify configuration ; it's more natural template takes care of the yes/no

This revision is now accepted and ready to land.Oct 29 2017, 20:40
This revision was automatically updated to reflect the committed changes.