Skip to content

Commit

Permalink
fixup! install 7/n: answerfile generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Oct 18, 2024
1 parent d0fe790 commit 030331a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion data.py-dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
# You need to have an SSH key into the hosts' /root/.ssh/authorized_keys.
HOST_DEFAULT_USER = "root"
HOST_DEFAULT_PASSWORD = ""
HOST_DEFAULT_PASSWORD_HASH = "" # FIXME

import crypt
def hash_password(password):
"Hash passwod for /etc/password"
salt = crypt.mksalt(crypt.METHOD_SHA512)
return crypt.crypt(password, salt)

HOST_DEFAULT_PASSWORD_HASH = hash_password(HOST_DEFAULT_PASSWORD)

# Public key for a private key available to the test runner
TEST_SSH_PUBKEY = """
Expand Down

0 comments on commit 030331a

Please sign in to comment.