cloud-init-local.service 580 B

123456789101112131415161718192021222324
  1. [Unit]
  2. Description=Initial cloud-init job (pre-networking)
  3. DefaultDependencies=no
  4. Wants=network-pre.target
  5. After=systemd-remount-fs.service
  6. Before=NetworkManager.service
  7. Before=network-pre.target
  8. Before=shutdown.target
  9. Before=sysinit.target
  10. Conflicts=shutdown.target
  11. RequiresMountsFor=/var/lib/cloud
  12. [Service]
  13. Type=oneshot
  14. ExecStart=/usr/bin/cloud-init init --local
  15. ExecStart=/bin/touch /run/cloud-init/network-config-ready
  16. RemainAfterExit=yes
  17. TimeoutSec=0
  18. # Output needs to appear in instance console output
  19. StandardOutput=journal+console
  20. [Install]
  21. WantedBy=cloud-init.target