cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00483
Re: Retaining comments in netplan configuration
That seeems like a reasonable feature request to me, but I don't know of a
way to make that work today, unfortunately. A PR that implements this
behavior would be welcome!
On Sun, Oct 6, 2024, 12:28 Andy Smith <andy@xxxxxxxxxxxxxx> wrote:
> 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
>
> --
> Mailing list: https://launchpad.net/~cloud-init
> Post to : cloud-init@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~cloud-init
> More help : https://help.launchpad.net/ListHelp
>
References