initial working
This commit is contained in:
13
scripts/create_cloud_init_.sh
Executable file
13
scripts/create_cloud_init_.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
SSH_PUBLIC_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOyva+cul3WOW3ct53a0QMRTkhtKvA2QpJI0p8bv48tH alex@alex-XPS-15-9570"
|
||||
SSH_KEY_FILE="/tmp/200_id_rsa.pub"
|
||||
echo "$SSH_PUBLIC_KEY" > "$SSH_KEY_FILE"
|
||||
|
||||
# Esegui la configurazione completa (usando lo storage 'local' per gli snippet)
|
||||
qm set 200 \
|
||||
--ciuser root \
|
||||
--sshkeys "$SSH_KEY_FILE" \
|
||||
--ipconfig0 "ip=192.168.1.200/24,gw=192.168.1.1" \
|
||||
--nameserver "8.8.8.8"
|
||||
|
||||
# Pulisci il file SSH temporaneo
|
||||
rm "$SSH_KEY_FILE"
|
||||
Reference in New Issue
Block a user