cloud-init.service 642 B

123456789101112131415161718192021222324252627
  1. [Unit]
  2. Description=Initial cloud-init job (metadata service crawler)
  3. DefaultDependencies=no
  4. Wants=cloud-init-local.service
  5. Wants=sshd-keygen.service
  6. Wants=sshd.service
  7. After=cloud-init-local.service
  8. After=systemd-networkd-wait-online.service
  9. After=networking.service
  10. Before=network-online.target
  11. Before=sshd-keygen.service
  12. Before=sshd.service
  13. Before=sysinit.target
  14. Conflicts=shutdown.target
  15. Before=systemd-user-sessions.service
  16. [Service]
  17. Type=oneshot
  18. ExecStart=/usr/bin/cloud-init init
  19. RemainAfterExit=yes
  20. TimeoutSec=0
  21. # Output needs to appear in instance console output
  22. StandardOutput=journal+console
  23. [Install]
  24. WantedBy=cloud-init.target