Use passwords with constant salts to avoid changing

This commit is contained in:
rockstable 2022-12-10 20:06:23 +01:00
parent 3139977afb
commit 604a862d0e
2 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@ fai_loguser:
fai_menu_default: 'HW4F Desktop Jammy'
fai_nfsroot_force_rebuild: false
fai_hw4f_password_salt: "toXu6kiez1haetan"
fai_hw4f_rootpw_fai: "fai"
fai_hw4f_profile_username: "user"
fai_hw4f_profile_password: "dezentrale"

View File

@ -24,8 +24,8 @@ FAI_DEBOOTSTRAP_OPTS="--exclude=wget"
#
# echo "yoursecrectpassword" | mkpasswd -m md5 -s
FAI_ROOTPW="{{ fai_hw4f_rootpw_fai | password_hash("sha512") }}"
#FAI_ROOTPW='$y$j9T$9Gpl96oNFKz9us5aM5iCb.$v/JHwnHRfaxMCPK/nsxu.DAmoGB1hlgRQBDIxTeMd9/'
FAI_ROOTPW="{{ fai_hw4f_rootpw_fai
| password_hash("sha512", fai_hw4f_password_salt ) }}"
# Directory on the install server where the nfsroot is created.
NFSROOT="{{ fai_dir_nfsroot }}"