comenzando

This commit is contained in:
trigkeyb
2025-02-01 21:02:48 +01:00
parent 6d31dc1584
commit 427ee381da
2 changed files with 11 additions and 14 deletions

View File

@@ -27,24 +27,12 @@ ssh_pwauth: true
hostname: $VMHOST
manage_etc_hosts: true
fqdn: $VMHOST
write_files:
- path: /etc/netplan/50-cloud-init.yaml
content: |
network:
version: 2
renderer: networkd
ethernets:
default:
match:
name: e*
dhcp4: yes
dhcp-identifier: mac
runcmd:
- apt update && apt install git -y
- cd /root
- git clone https://git.lfgut.duckdns.org/luis/infra_cloudinit.git
- cd infra_cloudinit
# - ./k8s.sh
- ./k8s.sh
EOF
echo "Archivo user_data.yaml creado con éxito."