OSC / ood-fileexplorer

[MOVED] The Open OnDemand File Explorer
https://osc.github.io/Open-OnDemand/
MIT License
4 stars 1 forks source link

Select ssh host #201

Closed MorganRodgers closed 5 years ago

MorganRodgers commented 5 years ago

Edited

If the environment variable OOD_SSH_HOSTS is set then a dropdown button will appear in place of the regular single click button. OOD_SSH_HOSTS completely overrides OOD_SHELL. OOD_SSH_HOSTS is expected to be a comma delimited list of colon delimited pairs. The first half of the pair needs to be the SSH host and the second should be a human-friendly label for the cluster. The URL to the Shell app may be customized by setting OOD_SHELL_URL (e.g. OOD_SHELL_URL=/pun/sys/alternative-shell-app/ssh).

For example at OSC we would use OOD_SSH_HOSTS=owens.osc.edu:Owens,ruby.osc.edu:Ruby,pitzer.osc.edu:Pitzer.

Note that there is no support at this time for filtering clusters, which is not ideal in cases where not all users have access to a given cluster.

Other decisions of note:

ericfranz commented 5 years ago

I think the design should change so OOD_SSH_HOSTS changes from:

/pun/sys/shell/ssh/owens.osc.edu:Owens,/pun/sys/shell/ssh/ruby.osc.edu:Ruby,/pun/sys/shell/ssh/pitzer.osc.edu:Pitzer

to

owens.osc.edu:Owens,ruby.osc.edu:Ruby,pitzer.osc.edu:Pitzer