mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-23 17:14:25 +00:00
Update cloud init
This commit is contained in:
@@ -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"
|
||||||
Reference in New Issue
Block a user