Update cloud init

This commit is contained in:
2024-09-14 22:51:58 +02:00
parent b5dbb0fc33
commit 4ecd9265c0

View File

@@ -62,8 +62,6 @@ runcmd:
- ufw enable - ufw enable
# SSH key for user # SSH key for user
- su ${username} -c 'ssh-keygen -t ed25519 -f /home/${username}/.ssh/id_ed25519 -q -N "" ' - su ${username} -c 'ssh-keygen -t ed25519 -f /home/${username}/.ssh/id_ed25519 -q -N "" '
# Expire password for user
- chage -d 0 ${username}
# SSH Passthrough for user git # SSH Passthrough for user git
- usermod -s /usr/local/bin/gitea-shell git - usermod -s /usr/local/bin/gitea-shell git
# k3s # k3s
@@ -73,6 +71,8 @@ runcmd:
- chmod 700 get_helm.sh - chmod 700 get_helm.sh
- ./get_helm.sh - ./get_helm.sh
# Install and bootstrap Flux # Install and bootstrap Flux
- curl -s https://fluxcd.io/install.sh | sudo bash - curl -s https://fluxcd.io/install.sh | bash
- su ${username} -c 'export GITHUB_TOKEN=${github_token} && flux bootstrap github --owner=${github_username} --repository=${github_repo} --personal' - su ${username} -c 'export GITHUB_TOKEN=${github_token} && flux bootstrap github --owner=${github_username} --repository=${github_repo} --personal'
# Expire password for user
- chage -d 0 ${username}
final_message: "The system is finally up, after $UPTIME seconds" final_message: "The system is finally up, after $UPTIME seconds"