Hello,
does anybody have cloud-init snippets/templates which configure network interfaces defined in Foreman, including ethernet, bond, bridge or vlan devices? Preferred is the native format (https://cloudinit.readthedocs.io/en/latest/topics/network-config.html) but I’d be happy for anything related.
Foreman currently ships with cloud-init that completely ignores network configuration for some reason. I now that on most clouds networking is usually DHCP and that’s the default, but it matters in virtualized environments.
I haven’t tried this myself, it looks like networking info should be passed as a separate field into oVirt for some reason, in cloud-init docs the networking data is often passed in a separate file: http://ovirt.github.io/ovirt-engine-api-model/4.3/#types/initialization
If we add this into Foreman templates, I’d like to write some tests validating syntax around it via cloud-init devel schema
command.
Also I have noticed we carry few user data templates which are actually shell scripts. Does anyone use that? What’s the use case?
Thanks