Bug 1033229

Summary: [RFE] Add configuration entry to change the rhc ssh message
Product: OKD Reporter: Timothy Williams <tiwillia>
Component: ContainersAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: jhadvig, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1033228 Environment:
Last Closed: 2013-11-22 13:45:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1033228    
Bug Blocks:    

Description Timothy Williams 2013-11-21 18:19:55 UTC
+++ This bug was initially created as a clone of Bug #1033228 +++

Description of problem:
Currently, the only way to change the message shown when a user ssh's to a gear is to change the block in /usr/bin/rhcsh. However, when updates occur, any changes made to this file are overwritten.

The request is to add a configuration file for the ssh message that will be marked as a configuration file in the rpm spec. This way, it will not be overwritten

Version-Release number of selected component (if applicable):
2.0

How reproducible:
Always

Steps to Reproduce:
1. Change the message in /usr/bin/rhcsh
2. Update

Actual results:
The message is back to the default

Expected results:
The message remains as changed.

Comment 1 Jakub Hadvig 2013-11-22 13:44:55 UTC
Have tested it, and its not a bug. When I was looking at the /usr/bin/rhcsh I found out that the message can be edited at the /etc/openshift/node.conf, on the node, where you can add the MOTD_FILE from which the MOTD should be taken.

https://github.com/openshift/origin-server/blob/master/node/conf/node.conf#L48

Will create an trello card to create a man page on the node.conf so there wont be any further misunderstandings.

Comment 2 Jakub Hadvig 2013-11-22 13:45:45 UTC
Closing this one because its not a bug.