comenzando
This commit is contained in:
@@ -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
9
clonar/k8s.sh
Executable 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
|
||||||
Reference in New Issue
Block a user