On Thu, Nov 12, 2020 at 10:11:26AM +0800, Luan Shengde wrote:
add -r|--rsa-key option for answerback-email
pub key is not necessarily RSA.
How about --gen-ssh-pubkey
[why] enable one click login testbox from jumper server
The deeper why: some people don't have local linux environment they'll use jumper server as main environment for job submit.
[how] add -r|--rsa-key option to enable generate rsa private/public key on jumper server register the public key to testbox
Signed-off-by: Luan Shengde shdluan@163.com
container/assign-account/answerback-email.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/container/assign-account/answerback-email.rb b/container/assign-account/answerback-email.rb index 686a327..6d8e3de 100755 --- a/container/assign-account/answerback-email.rb +++ b/container/assign-account/answerback-email.rb @@ -32,7 +32,8 @@ my_info = { 'my_email' => nil, 'my_name' => nil, 'my_uuid' => %x(uuidgen).chomp,
- 'my_ssh_pubkey' => nil
- 'my_ssh_pubkey' => nil,
- 'my_jumper_pubkey' => false
Dont add my_jumper_pubkey. Should reuse my_ssh_pubkey. my_ssh_pubkey can be made an array, and it should be excluded from ES mapping.
Thanks, Fengguang