Page MenuHomeDevCentral

Provide motd command
ClosedPublic

Authored by dereckson on Jan 10 2017, 22:43.
Tags
None
Referenced Files
F10841367: D817.id2072.diff
Mon, Jul 28, 19:33
F10841354: D817.id2110.diff
Mon, Jul 28, 19:32
F10841351: D817.id2109.diff
Mon, Jul 28, 19:32
F10841345: D817.id2098.diff
Mon, Jul 28, 19:31
F10841260: D817.diff
Mon, Jul 28, 19:03
F10840649: D817.id2072.diff
Mon, Jul 28, 15:38
F10825983: D817.id.diff
Mon, Jul 28, 00:56
F10825848: D817.id2098.diff
Mon, Jul 28, 00:30
Subscribers
None

Details

Summary

A popular way to connect to a remote shell server is to reattach
to the tmux session. For example, ssh -t eglide.org tmux attach.

In such scenario, motd isn't printed at login time.
To allow to read MOTD in such sc, we provide a convenient command.

Test Plan

motd

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
motd-command (branched from master)
Build Status
Buildable 1269
Build 1517: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Jan 12 2017, 09:20

Should be added to top.tls too.

Ysul
$ arc patch D817
$ salt eglide state.apply roles/core/motd/
eglide:
    Data failed to compile:
----------
    The function "mode 755" in state "/usr/local/bin/motd" in SLS "roles/core/motd/" has whitespace, a function with whitespace is not supported, perhaps this is an argument that is missing a ":"
----------
    Too many functions declared in state 'file' in SLS 'roles/core/motd/'
roles/core/motd/init.sls
26

mode:

Should be added to top.tls too.

Actually, we're adding a new function in the already existing motd unit but it's already in top.tls.

This revision is now accepted and ready to land.Jan 13 2017, 12:14
This revision was automatically updated to reflect the committed changes.