Hi Berndbausch, thanks for reply but that is not exactly what I am asking for.
File:
/etc/netplan/50-cloud-init.yaml has been generated automatically by cloud-init and after every reboot it will be generated from scratch (unless changed with netplan apply).
My question is:
where in cloud-init configuration files can I find initial/default settings for /etc/netplan/50-cloud-init.yaml ?
Code:
root@ubuntu:/etc# cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by
# the datasource. Changes to it will not persist across an instance.
By looking for "datasource" I have found it in these files but there is not a single string saying about network configuration, dhcp, etc...
Its very interesting how did it come up to create 50-cloud-init.yaml in a form as it is.
Code:
/etc/cloud/cloud.cfg.d/99-fake_cloud.cfg:datasource_list: [ NoCloud, None ]
/etc/cloud/cloud.cfg.d/90_dpkg.cfg:datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Bigstep, Scaleway, AliYun, Ec2, CloudStack, Hetzner, IBMCloud, None ]
/var/lib/cloud/data/result.json: "datasource": "DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]",
/var/lib/cloud/data/status.json: "datasource": "DataSourceNoCloud [seed=/var/lib/cloud/seed/nocloud-net][dsmode=net]",