feat: added cloud-init files

This commit is contained in:
ITQ
2025-08-06 03:10:18 +03:00
parent 6c99365727
commit 1f359634d2
3 changed files with 80 additions and 0 deletions
@@ -0,0 +1,32 @@
#cloud-config
hostname: control-plane
manage_etc_hosts: false
users:
- name: ubuntu
gecos: ubuntu
sudo: ALL=(ALL) NOPASSWD:ALL
lock_passwd: false
ssh_pwauth: true
shell: /bin/bash
ssh_authorized_keys:
- ${ssh_public_key}
ssh_pwauth: true
chpasswd:
list: |
ubuntu:ubuntu
expire: false
growpart:
mode: auto
devices: ["/"]
package_update: false
package_upgrade: false
write_files:
- path: /etc/hosts
append: true
encoding: b64
content: ${hosts_file}