Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
b93fa0a3
Commit
b93fa0a3
authored
Feb 05, 2018
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up pelegant_setup.sh code
parent
de1f88fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
roles/elegant/files/pelegant_setup.sh
roles/elegant/files/pelegant_setup.sh
+7
-7
No files found.
roles/elegant/files/pelegant_setup.sh
View file @
b93fa0a3
...
...
@@ -29,21 +29,21 @@ if [ -f ~/.mpihosts ]; then
/usr/bin/mv ~/.mpihosts ~/.mpihosts.
$(
date
--iso
)
fi
for
host
in
"
${
!host_cpus[@]
}
"
;
do
/usr/bin/echo
"
${
host
}
:
${
host_cpus
[
$host
]
}
"
user
=
${
USER
}
>>
~/.mpihosts
printf
"%s:%s user=%s
\n
"
,
"
${
host
}
"
"
${
host_cpus
[
$host
]
}
"
"
${
USER
}
"
>>
~/.mpihosts
done
printf
"Copying files and mounting SSHFS
\n
"
for
host
in
"
${
!host_cpus[@]
}
"
;
do
cpu
=
"
${
host_cpus
[
$host
]
}
"
printf
"SSH copy from %s to %s (%s)"
,
${
main_host
}
,
${
host
}
,
${
filename
}
printf
"SSH copy from %s to %s (%s)"
,
"
${
main_host
}
"
"
${
host
}
"
"
${
filename
}
"
scp
"
${
filename
}
"
"
${
host
}
:~/.ssh/"
scp
"
${
filename
}
.pub"
"
${
host
}
:~/.ssh/"
ssh-copy-id
-i
"
${
filename
}
"
${
host
}
ssh-copy-id
-i
"
${
filename
}
"
${
main_host
}
ssh-copy-id
-i
"
${
filename
}
"
"
${
host
}
"
ssh-copy-id
-i
"
${
filename
}
"
"
${
main_host
}
"
scp ~/.mpihosts
"
${
host
}
:.mpihosts"
curdir
=
${
PWD
}
ssh
-i
"
${
filename
}
"
${
host
}
"ssh-copy-id -i
${
filename
}
${
main_host
}
"
ssh
-i
"
${
filename
}
"
${
host
}
"mkdir
${
curdir
}
&& sshfs
${
main_host
}
:
${
curdir
}
${
curdir
}
-o IdentityFile=
\"
${
filename
}
\"
"
ssh
-i
"
${
filename
}
"
"
${
host
}
"
\
"mkdir
${
curdir
}
&& "
\
"sshfs
${
main_host
}
:
${
curdir
}
${
curdir
}
-o IdentityFile=
\"
${
filename
}
\"
"
done
Write
Preview
Markdown
is supported
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