mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
deploy with k3s
This commit is contained in:
parent
0f08cfb0d2
commit
2863062e44
26 changed files with 456 additions and 207 deletions
13
scripts/bootstrap-keys.sh
Executable file
13
scripts/bootstrap-keys.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
|
||||
CERT_FILE=./keys/id_terraform
|
||||
|
||||
if [ -f "$CERT_FILE" ]; then
|
||||
echo "$CERT_FILE already exists. To avoid loosing data, I will not generate a new SSH key."
|
||||
else
|
||||
echo "Generating a new SSH Key at $CERT_FILE"
|
||||
ssh-keygen -t rsa -C "terraform@apricote.de" -m PEM -f $CERT_FILE
|
||||
chmod 600 keys/id_terraform*
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue