← Back to team overview

cloud-init team mailing list archive

Retaining comments in netplan configuration

 

Hi,

I have a cloud init data source with the network configuration in the
drive as /network-config as usual. As this is netplan, it's just a
pass-through netplan config.

My config file is well commented, but when cloud-init copies it to
/etc/netplan/50-cloud-init.yaml it seems that all comment lines are
stripped.

Is there a way to prevent this happening, or a particular format to use
in the metadata file to be kept as a comment in the final produced
netplan config file?

I am not subscribed to this list so please copy me directly on replies.

Thanks!
Andy


Follow ups