summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorChad Smith <chad.smith@canonical.com>2022-07-29 10:33:42 -0600
committerGitHub <noreply@github.com>2022-07-29 10:33:42 -0600
commit6e498773bf153f7b2f5e995a2f2fe24774dd3cab (patch)
tree7dc4574ac43b8630fbad04c6bd7e78efb44b692b /config
parent0f3f814de78549d7af91b9b46603e67ac3db2224 (diff)
downloadcloud-init-git-6e498773bf153f7b2f5e995a2f2fe24774dd3cab.tar.gz
network: add system_info network activator cloud.cfg overrides (#1619)
Support overriding network activators in cloud.cfg system_info on disk. Default cloud-init activators are used either during hot-plug or for datasources that are detected during init-network stage when basic networking has already been setup by the OS.a Activators are discovered in the following priority order and determined based on the presence of related network tools: system_info: network: activators: [eni, netplan, network-manager, networkd] On some systems where multiple network config tools are installed it is necessary to override the priority order of detection to ensure one activator is chosen over the other. This is done by providing the a custom cloud config snippet in a /etc/cloud/cloud.cfg.d/*cfg. Surface configured Distro.network_activator from system_info so that the hotplug hook has visibility to the configured distribution network activator during interface bring_up and tear_down. Add typing hints to net.activators search_activator and select_activator functions. LP: #1958377
Diffstat (limited to 'config')
-rw-r--r--config/cloud.cfg.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/cloud.cfg.tmpl b/config/cloud.cfg.tmpl
index 8da8f18c..5be80f53 100644
--- a/config/cloud.cfg.tmpl
+++ b/config/cloud.cfg.tmpl
@@ -215,6 +215,7 @@ system_info:
{# SRU_BLOCKER: do not ship network renderers on Xenial, Bionic or Eoan #}
network:
renderers: ['netplan', 'eni', 'sysconfig']
+ activators: ['netplan', 'eni', 'network-manager', 'networkd']
# Automatically discover the best ntp_client
ntp_client: auto
# Other config here will be given to the distro class and/or path classes