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
snf-ganeti
Commits
531baf8e
Commit
531baf8e
authored
Dec 14, 2008
by
Iustin Pop
Browse files
cleanup: _InitSSHSetup doesn't need its argument
Reviewed-by: imsnah
parent
fab1e3a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/bootstrap.py
View file @
531baf8e
...
...
@@ -38,14 +38,12 @@ from ganeti import constants
from
ganeti
import
objects
from
ganeti
import
ssconf
def
_InitSSHSetup
(
node
):
def
_InitSSHSetup
():
"""Setup the SSH configuration for the cluster.
This generates a dsa keypair for root, adds the pub key to the
permitted hosts and adds the hostkey to its own known hosts.
@param node: the name of this host as an FQDN
"""
priv_key
,
pub_key
,
auth_keys
=
ssh
.
GetUserFiles
(
constants
.
GANETI_RUNAS
)
...
...
@@ -192,7 +190,7 @@ def InitCluster(cluster_name, mac_prefix, def_bridge,
sshkey
=
sshline
.
split
(
" "
)[
1
]
utils
.
AddHostToEtcHosts
(
hostname
.
name
)
_InitSSHSetup
(
hostname
.
name
)
_InitSSHSetup
()
# init of cluster config file
cluster_config
=
objects
.
Cluster
(
...
...
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