From 4ecd9265c0b83a31f2a861e4af8f078508d1a768 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sat, 14 Sep 2024 22:51:58 +0200 Subject: [PATCH] Update cloud init --- provisioning/cloud-init.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/provisioning/cloud-init.yaml b/provisioning/cloud-init.yaml index b648580..fc740f7 100644 --- a/provisioning/cloud-init.yaml +++ b/provisioning/cloud-init.yaml @@ -62,8 +62,6 @@ runcmd: - ufw enable # SSH key for user - 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 - usermod -s /usr/local/bin/gitea-shell git # k3s @@ -73,6 +71,8 @@ runcmd: - chmod 700 get_helm.sh - ./get_helm.sh # 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' + # Expire password for user + - chage -d 0 ${username} final_message: "The system is finally up, after $UPTIME seconds" \ No newline at end of file