Actualizar cloud-init.yaml
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
#cloud-config
|
||||
hostname: ubuntu2404
|
||||
hostname: u24
|
||||
manage_etc_hosts: true
|
||||
users:
|
||||
- name: ubuntu
|
||||
sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
- ssh-rsa AAAAB3Nz...tu_clave_ssh_publica
|
||||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP+0uByuK0HvLIA9pFLlhBQm4GKLH3Wj10sCRTJxh6Mu kzonny@gmail.com
|
||||
package_update: true
|
||||
package_upgrade: true
|
||||
packages:
|
||||
- vim
|
||||
- curl
|
||||
- net-tools
|
||||
- qemu-guest-agent
|
||||
runcmd:
|
||||
- echo "Contenedor inicializado" > /etc/motd
|
||||
- systemctl enable qemu-guest-agent
|
||||
- echo "Contenedor desplegado y actualizado correctamente" > /etc/motd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user