Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
f7ab4f0f
Commit
f7ab4f0f
authored
6 years ago
by
Lang Martin
Browse files
Options
Download
Email Patches
Plain Diff
e2e update shell scripts argument quoting
parent
4b8c9428
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/bin/run
+3
-3
e2e/bin/run
e2e/bin/update
+5
-10
e2e/bin/update
with
8 additions
and
13 deletions
+8
-13
e2e/bin/run
+
3
-
3
View file @
f7ab4f0f
...
...
@@ -10,6 +10,6 @@ fi
nodes
=
$(
terraform output
-json
-state
=
terraform/terraform.tfstate | jq
-r
'(.clients,.servers).value[]'
)
for
node
in
$nodes
do
echo
Executing: ssh
-i
terraform/keys/
*
.pem ubuntu@
$node
$@
ssh
-o
StrictHostKeyChecking
=
accept-new
-i
terraform/keys/
*
.pem ubuntu@
$node
$@
done
\ No newline at end of file
echo
Executing: ssh
-i
terraform/keys/
*
.pem ubuntu@
$node
"
$@
"
ssh
-o
StrictHostKeyChecking
=
accept-new
-i
terraform/keys/
*
.pem ubuntu@
$node
"
$@
"
done
This diff is collapsed.
Click to expand it.
e2e/bin/update
+
5
-
10
View file @
f7ab4f0f
#!/bin/bash
set
-e
if
[
"
$1
"
==
""
]
;
then
if
[
$#
-ne
2
]
;
then
echo
"./upload.sh <source> <destination>"
exit
1
fi
if
[
"
$2
"
==
""
]
;
then
echo
"./upload.sh <source> <destination>"
exit
1
fi
set
-e
nodes
=
$(
terraform output
-json
-state
=
terraform/terraform.tfstate | jq
-r
'(.clients,.servers).value[]'
)
for
node
in
$nodes
do
echo
Executing: scp
-C
-i
terraform/keys/
*
.pem
$1
ubuntu@
$node
:
$2
#scp -o StrictHostKeyChecking=accept-new -C -i terraform/keys/*.pem "$1" ubuntu@$node:"$2"
echo
Executing: scp
-C
-i
terraform/keys/
*
.pem
"
$1
"
ubuntu@
$node
:
"
$2
"
#
scp -o StrictHostKeyChecking=accept-new -C -i terraform/keys/*.pem "$1" ubuntu@$node:"$2"
scp
-o
StrictHostKeyChecking
=
accept-new
-C
-i
terraform/keys/
*
.pem
"
$1
"
ubuntu@
$node
:/tmp/uploaded
ssh
-i
terraform/keys/
*
.pem ubuntu@
$node
sudo mv
/tmp/uploaded
"
$2
"
done
\ No newline at end of file
done
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help