summaryrefslogtreecommitdiff
path: root/systemd/cloud-init.service.tmpl
diff options
context:
space:
mode:
authorRyan Harper <ryan.harper@canonical.com>2019-10-31 14:45:29 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-10-31 14:45:29 +0000
commit8888ca1af7f1fed33e79b56694834310ed35559a (patch)
treec6b42623bea18c1cbce5835da384cbed88e2ce44 /systemd/cloud-init.service.tmpl
parente1b4b8c903fed3b69e57ec08c17ce94097d55901 (diff)
downloadvyos-cloud-init-8888ca1af7f1fed33e79b56694834310ed35559a.tar.gz
vyos-cloud-init-8888ca1af7f1fed33e79b56694834310ed35559a.zip
cloud-init.service: on centos/fedora/redhat wait on NetworkManager.service
In Centos/RHEL 8, NetworkManager is installed as the networking service. cloud-init.service needs to run After this service to allow the OS to bring networking up first. LP: #1843334
Diffstat (limited to 'systemd/cloud-init.service.tmpl')
-rw-r--r--systemd/cloud-init.service.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/systemd/cloud-init.service.tmpl b/systemd/cloud-init.service.tmpl
index 1e5942a8..9ad3574c 100644
--- a/systemd/cloud-init.service.tmpl
+++ b/systemd/cloud-init.service.tmpl
@@ -12,6 +12,7 @@ After=networking.service
{% endif %}
{% if variant in ["centos", "fedora", "redhat"] %}
After=network.service
+After=NetworkManager.service
{% endif %}
{% if variant in ["suse"] %}
After=wicked.service