i found time to play with cloud init, most of examples looks outdated or don't work dunno why.
hostname: {name} don't work, only hostname: {name}%. Also i don't find that macros at official doc.
with manage_etc_hosts: true it changed /etc/hosts 127.0.1.1 basename to 127.0.1.1 basename test%. Maybe package itself bug, maybe XO problem.
preserve_hostname: false looks not required, i don't see any difference.
even if not use any network config, it change netplan (don't need it with dhcp).
network:
version: 2
ethernets:
enX0:
dhcp4: true
to
network:
version: 2
ethernets:
enX0:
match:
macaddress: "my_mac"
dhcp4: true
dhcp6: true
set-name: "enX0"
to save default netplan, need to use something like
network:
version: 1
config:
subnets:
- type: dhcp4
type: physical
can't make disk resize work, it looks like rocket science. And this is most important part for me.
resize_rootfs: true
growpart:
mode: auto
devices: ['/']
ignore_growroot_disabled: false
I'm fine enough with manually tuned templates, 99% time don't need to change anything except name\disk. Other tasks require manual attention anyway or already covered with ansible. Would be nice to see tutorial for IQ<3.