provision script fixes, flash the server creds to the user on server create

This commit is contained in:
2025-03-30 12:37:34 +00:00
parent 435a7ac1e3
commit 5ba1ac9c92
5 changed files with 21 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
# [!hostname!] - server hostname
# [!sudo_password!] - the sudo password to set
# [!server_id!] - the servers id
# [!keystonepublickey!] - keystone's public key
apt_wait() {
while fuser /var/lib/dpkg/lock >/dev/null 2>&1; do
@@ -74,7 +75,7 @@ usermod --password $PASSWORD keystone
# Build Formatted Keys & Copy Keys To Keystone
cat >/root/.ssh/authorized_keys <<EOF
# Keystone
@TODO INJECT KEY HERE
[!keystonepublickey!]
EOF
cp /root/.ssh/authorized_keys /home/keystone/.ssh/authorized_keys