summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2020-03-30 21:24:51 -0600
committerGitHub <noreply@github.com>2020-03-30 21:24:51 -0600
commit4fb6fd8a046a6bcce01216c386f3b691a2c466bb (patch)
treeef8673d266575861a09391ea15cf5dbd4bea6241 /config
parent4f825b3e6d8fde5c239d29639b04d2bea6d95d0e (diff)
downloadvyos-cloud-init-4fb6fd8a046a6bcce01216c386f3b691a2c466bb.tar.gz
vyos-cloud-init-4fb6fd8a046a6bcce01216c386f3b691a2c466bb.zip
net: ubuntu focal prioritize netplan over eni even if both present (#267)
On Focal and later, Ubuntu will prioritize netplan renderer over eni, even if ifupdown and netplan are both installed. ENI on Focal and later is considered an unsupported configuration so cloud-init should generally prefer netplan. On many cloud images, the /etc/network/interfaces config file does not include the dir /etc/network/interfaces.d thereby ignoring cloud-init's /etc/network/interfaces.d/50-cloud-init.cfg file. LP: #1867029
Diffstat (limited to 'config')
-rw-r--r--config/cloud.cfg.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl
index 2b052c0f..e6f7a9a1 100644
--- a/config/cloud.cfg.tmpl
+++ b/config/cloud.cfg.tmpl
@@ -162,6 +162,9 @@ system_info:
groups: [adm, audio, cdrom, dialout, dip, floppy, lxd, netdev, plugdev, sudo, video]
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
+{# SRU_BLOCKER: do not ship network renderers on Xenial, Bionic or Eoan #}
+ network:
+ renderers: ['netplan', 'eni', 'sysconfig']
# Automatically discover the best ntp_client
ntp_client: auto
# Other config here will be given to the distro class and/or path classes