prueba 003
This commit is contained in:
@@ -8,6 +8,7 @@ USER="curso"
|
||||
PASSWORD="1"
|
||||
PASSWORD_HASH=$(openssl passwd -6 "$PASSWORD")
|
||||
PUB_KEY=$(cat ~/.ssh/id_rsa.pub)
|
||||
VMHOST="k8scp"
|
||||
|
||||
cat <<EOF > /mnt/pve/VMs_storage-E/snippets/user_data.yaml
|
||||
#cloud-config
|
||||
@@ -23,9 +24,9 @@ system_info:
|
||||
ssh_authorized_keys:
|
||||
- $PUB_KEY
|
||||
ssh_pwauth: true
|
||||
hostname: ubuntu-cloud
|
||||
hostname: $VMHOST
|
||||
manage_etc_hosts: true
|
||||
fqdn: ubuntu-cloud
|
||||
fqdn: $VMHOST
|
||||
runcmd:
|
||||
- cd /root
|
||||
- git clone https://git.lfgut.duckdns.org/luis/infra_cloudinit.git
|
||||
|
||||
Reference in New Issue
Block a user