summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2023-05-04 22:26:17 +0300
committerzsdc <taras@vyos.io>2023-05-04 22:26:17 +0300
commit3c229a3646a58e47d4d69c011f82c45ef3bb3c77 (patch)
tree5c805e4e0d0d3131585cc5a7d0a8edf8167f5294 /debian
parentba81c15185d7a59ab0ec6705b53b311b4dda721d (diff)
downloadvyos-1x-3c229a3646a58e47d4d69c011f82c45ef3bb3c77.tar.gz
vyos-1x-3c229a3646a58e47d4d69c011f82c45ef3bb3c77.zip
cloud-init: T5190: Added Cloud-init pre-configurator
Added a new service that starts before Cloud-init, waits for all network interfaces initialization, and if requested by config, checks which interfaces can get configuration via DHCP server and creates a corresponding Cloud-init network configuration. This protects from two situations: * when Cloud-init tries to get meta-data via eth0 (default and fallback variant for any data source which depends on network), but the real network is connected to another interface * when Cloud-init starts simultaneously with udev and initializes the first interface to get meta-data before it is renamed to eth0 by udev
Diffstat (limited to 'debian')
-rw-r--r--debian/vyos-1x.postinst3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index ddc189508..6653cd585 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -122,5 +122,8 @@ if test -f /etc/pam.d/frr; then
fi
fi
+# Enable Cloud-init pre-configuration service
+systemctl enable vyos-config-cloud-init.service
+
# Generate API GraphQL schema
/usr/libexec/vyos/services/api/graphql/generate/generate_schema.py