rescritura netplan
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Crea variables
|
# Crea variables
|
||||||
# ID de VM
|
# ID de VM
|
||||||
VMID="919200"
|
VMID="920000"
|
||||||
|
|
||||||
# lugar de almacenamiento para el disco
|
# lugar de almacenamiento para el disco
|
||||||
### VMSTORAGE="VMs_storage-E"
|
### VMSTORAGE="VMs_storage-E"
|
||||||
|
|||||||
10
clonar/50-cloud-init.yaml
Normal file
10
clonar/50-cloud-init.yaml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
network:
|
||||||
|
version: 2
|
||||||
|
renderer: networkd
|
||||||
|
ethernets:
|
||||||
|
default:
|
||||||
|
match:
|
||||||
|
name: e*
|
||||||
|
dhcp4: yes
|
||||||
|
dhcp-identifier: mac
|
||||||
|
|
||||||
@@ -27,6 +27,19 @@ 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:
|
||||||
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user