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 hostname: $VMHOST
manage_etc_hosts: true manage_etc_hosts: true
fqdn: $VMHOST 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: runcmd:
- apt update && apt install git -y
- cd /root - cd /root
- git clone https://git.lfgut.duckdns.org/luis/infra_cloudinit.git - git clone https://git.lfgut.duckdns.org/luis/infra_cloudinit.git
- cd infra_cloudinit - cd infra_cloudinit
# - ./k8s.sh - ./k8s.sh
EOF EOF
echo "Archivo user_data.yaml creado con éxito." echo "Archivo user_data.yaml creado con éxito."

9
clonar/k8s.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Actualización del sistema
apt update && apt upgrade -y
# Instalación de dependencias necesarias
apt install qemu-guest-agent -y
systemctl enable --now qemu-guest-agent