[英]Cloud-init should use another yaml file. Not 50-cloud-init.yaml
i would like cloud-init to not use 50-cloud-init.yaml.我希望 cloud-init 不使用 50-cloud-init.yaml。 I have prepared my own file.
我准备了我自己的文件。 Do you know how to do this
你知道怎么做吗
You can add你可以加
network:
config: disabled
to /etc/cloud/cloud.cfg
or a file in /etc/cloud/cloud.cfg.d
.到
/etc/cloud/cloud.cfg
或/etc/cloud/cloud.cfg.d
中的文件。
Another option is to add另一种选择是添加
network-config=disabled
to the kernel command line.到内核命令行。
While the network config yaml technically works as userdata, the network configuration will have already been written out before userdata is read.虽然网络配置 yaml 在技术上用作用户数据,但在读取用户数据之前,网络配置已经被写出。
One other option is to write your netplan configuration into /etc/netplan/99-some-name.yaml
.另一种选择是将您的 netplan 配置写入
/etc/netplan/99-some-name.yaml
。 If you have configuration there that overlaps with what is in 50-cloud-init.yaml, your configuration will override what is in the default configuration.如果您的配置与 50-cloud-init.yaml 中的配置重叠,您的配置将覆盖默认配置中的配置。
See https://cloudinit.readthedocs.io/en/latest/topics/network-config.html#disabling-network-configuration .请参阅https://cloudinit.readthedocs.io/en/latest/topics/network-config.html#disabling-network-configuration 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.