This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch DLAB-terraform
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/DLAB-terraform by this push:
new 6c719ee Fixed conf_key copying.
new 8026ca5 Merge pull request #216 from AdamsDisturber/DLAB-terraform
6c719ee is described below
commit 6c719ee6a3e7794b0a033cbff340a5b5c566eb42
Author: AdamsDisturber <[email protected]>
AuthorDate: Fri Aug 2 17:04:43 2019 +0300
Fixed conf_key copying.
---
infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 3f6e8b7..799b440 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -45,7 +45,10 @@ def create_user():
def copy_keys():
try:
- conn.put(args.keyfile, ' /home/{}/keys'.format(args.os_user))
+ conn.put(args.pkey, '/tmp/')
+ conn.sudo('mv /tmp/{0} /home/{1}/keys/'
+ .format(args.conf_key_name, args.os_user))
+ conn.sudo('chown -R {0}:{0} /home/{0}/keys'.format(args.os_user))
except Exception as err:
logging.error('Failed to copy keys ', str(err))
traceback.print_exc()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]