Commit 60b0b681 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis

deploy/ci: Remove dummy password in nodes.conf

Since snf-deploy image does passwd -d root the nodes will have
empty password.

Set UsePAM no and PermitEmptyPasswords yes in sshd_config in
vcluster image.
Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
parent 41c107bb
......@@ -22,7 +22,7 @@ os = debian
# The node's administrator account (with root priviledges)
user = root
# The root's password
password = 12345
password =
# The interface with internet access
public_iface = eth0
......
......@@ -1005,7 +1005,6 @@ class SynnefoCI(object):
self.logger.debug("Change password in nodes.conf file")
cmd = """
sed -i 's/^password =.*/password = {0}/' /etc/snf-deploy/nodes.conf
sed -i 's/12345/{0}/' /etc/snf-deploy/nodes.conf
""".format(fabric.env.password)
_run(cmd, False)
......
......@@ -22,7 +22,7 @@ os = debian
# The node's administrator account (with root priviledges)
user = root
# The root's password
password = 12345
password =
# The interface with internet access
public_iface = eth0
......
......@@ -68,9 +68,8 @@ chmod +x $TEMP/$NMHOOK
chroot $TEMP passwd -d root
cat >> $TEMP/etc/ssh/sshd_config <<EOF
PermitEmptyPasswords yes
EOF
sed -i 's/^PermitEmptyPasswords.*/PermitEmptyPasswords yes/' $TEMP/etc/ssh/sshd_config
sed -i 's/^UsePAM.*/UsePAM no/' $TEMP/etc/ssh/sshd_config
cat >> $TEMP/etc/pam.d/sshd <<EOF
auth required pam_unix.so shadow nullok
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment