Añadir cloud-init.yaml
This commit is contained in:
13
cloud-init.yaml
Normal file
13
cloud-init.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#cloud-config
|
||||||
|
hostname: ubuntu2404
|
||||||
|
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
|
||||||
|
package_update: true
|
||||||
|
package_upgrade: true
|
||||||
|
runcmd:
|
||||||
|
- echo "Contenedor inicializado" > /etc/motd
|
||||||
Reference in New Issue
Block a user