devtool: add ssh key option do deploy-target
PATCH 1/1 devtool: add ssh key option do deploy-target
--- scripts/lib/devtool/deploy.py | 8 ++++++++ 1 file changed, 8 insertions(+)
scripts/lib/devtool/deploy.py +8 -0
@@ -212,6 +212,9 @@ def deploy(args, config, basepath, workspace): scp_port = "-P %s" % args.port ssh_port = "-p %s" % args.port + if args.key: + extraoptions += ' -i %s' % args.key + # In order to delete previously deployed files and have the manifest file on # the target, we write out a shell script and then copy it to the target # so we can then run it (piping tar output to it).
@@ -326,6 +329,8 @@ def register_commands(subparsers, context): parser_deploy.add_argument('--no-check-space', help='Do not check for available space before deploying', action='store_true') parser_deploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') parser_deploy.add_argument('-P', '--port', help='Specify port to use for connection to the target') + parser_deploy.add_argument('-I', '--key', + help='Specifiy ssh private key for connection to the target') strip_opts = parser_deploy.add_mutually_exclusive_group(required=False) strip_opts.add_argument('-S', '--strip',
@@ -349,4 +354,7 @@ def register_commands(subparsers, context): parser_undeploy.add_argument('-n', '--dry-run', help='List files to be undeployed only', action='store_true') parser_undeploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') parser_undeploy.add_argument('-P', '--port', help='Specify port to use for connection to the target') + parser_undeploy.add_argument('-I', '--key', + help='Specifiy ssh private key for connection to the target') + parser_undeploy.set_defaults(func=undeploy)
Signature · 1 line
2.20.1
This should go to the openembedded-core mailing list.
Alex
Quoted 56 lines · Eduardo Abinader
Signed-off-by Eduardo Abinader <[email protected]>--- scripts/lib/devtool/deploy.py | 8 ++++++++ 1 file changed, 8 insertions(+)scripts/lib/devtool/deploy.py +3
-0@@ -212,6 +212,9 @@ def deploy(args, config, basepath, workspace): scp_port = "-P %s" % args.port ssh_port = "-p %s" % args.port + if args.key: + extraoptions += ' -i %s' % args.key + # In order to delete previously deployed files and have themanifest file on
# the target, we write out a shell script and then copy it to the target # so we can then run it (piping tar output to it).scripts/lib/devtool/deploy.py +2
-0@@ -326,6 +329,8 @@ def register_commands(subparsers, context): parser_deploy.add_argument('--no-check-space', help='Do not check for available space before deploying', action='store_true') parser_deploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') parser_deploy.add_argument('-P', '--port', help='Specify port to use for connection to the target') + parser_deploy.add_argument('-I', '--key', + help='Specifiy ssh private key forconnection to the target')
strip_opts=parser_deploy.add_mutually_exclusive_group(required=False)strip_opts.add_argument('-S', '--strip',scripts/lib/devtool/deploy.py +0
-0@@ -349,4 +354,7 @@ def register_commands(subparsers, context): parser_undeploy.add_argument('-n', '--dry-run', help='List files to be undeployed only', action='store_true') parser_undeploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') parser_undeploy.add_argument('-P', '--port', help='Specify port touse for connection to the target')
scripts/lib/devtool/deploy.py +2
-0+ parser_undeploy.add_argument('-I', '--key', + help='Specifiy ssh private key forconnection to the target')
+
parser_undeploy.set_defaults(func=undeploy)
--
2.20.1--
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Gonna do it.
Thanks, Alex
Quoted 64 lines · Alexander Kanavin
This should go to the openembedded-core mailing list.
Alex
Quoted 56 lines · Eduardo Abinader
Signed-off-by Eduardo Abinader <[email protected]>--- scripts/lib/devtool/deploy.py | 8 ++++++++ 1 file changed, 8 insertions(+)scripts/lib/devtool/deploy.py +3
-0@@ -212,6 +212,9 @@ def deploy(args, config, basepath, workspace): scp_port = "-P %s" % args.port ssh_port = "-p %s" % args.port + if args.key: + extraoptions += ' -i %s' % args.key + # In order to delete previously deployed files and have themanifest file on
# the target, we write out a shell script and then copy it to the target # so we can then run it (piping tar output to it).scripts/lib/devtool/deploy.py +2
-0@@ -326,6 +329,8 @@ def register_commands(subparsers, context): parser_deploy.add_argument('--no-check-space', help='Do not check for available space before deploying', action='store_true') parser_deploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') parser_deploy.add_argument('-P', '--port', help='Specify port to use for connection to the target') + parser_deploy.add_argument('-I', '--key', + help='Specifiy ssh private key forconnection to the target')
strip_opts=parser_deploy.add_mutually_exclusive_group(required=False)strip_opts.add_argument('-S', '--strip',scripts/lib/devtool/deploy.py +0
-0@@ -349,4 +354,7 @@ def register_commands(subparsers, context): parser_undeploy.add_argument('-n', '--dry-run', help='List files to be undeployed only', action='store_true') parser_undeploy.add_argument('-e', '--ssh-exec', help='Executable to use in place of ssh') parser_undeploy.add_argument('-P', '--port', help='Specify port touse for connection to the target')
scripts/lib/devtool/deploy.py +2
-0+ parser_undeploy.add_argument('-I', '--key', + help='Specifiy ssh private key forconnection to the target')
+
parser_undeploy.set_defaults(func=undeploy)
--
2.20.1--
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky