Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
93221866
Commit
93221866
authored
Aug 08, 2013
by
Dimitris Aragiorgis
Committed by
Christos Stavrakakis
Aug 20, 2013
Browse files
Minor fix in setup_hosts (sed -i /etc/hosts)
Signed-off-by:
Dimitris Aragiorgis
<
dimara@grnet.gr
>
parent
f14c5e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-deploy/fabfile.py
View file @
93221866
...
...
@@ -281,7 +281,7 @@ def setup_resolv_conf():
def
setup_hosts
():
debug
(
env
.
host
,
"Tweaking /etc/hosts and ssh_config files..."
)
try_run
(
"echo StrictHostKeyChecking no >> /etc/ssh/ssh_config"
)
cmd
=
" sed -i 's/^127.*/127.0.0.1 localhost/
g
' /etc/hosts "
cmd
=
" sed -i 's/^127.*/127.0.0.1 localhost/' /etc/hosts "
try_run
(
cmd
)
host_info
=
env
.
env
.
ips_info
[
env
.
host
]
cmd
=
"hostname %s"
%
host_info
.
hostname
...
...
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