cloud-init runs when it's supposed to run; it has 4 stages[1].
What units don't wait for cloud-init?
In case you're creating scripts or units then:
Scripts can use:
cloud-init status --wait
Systemd Units can use:
After=cloud-init.target
This will ensure they don't run until after cloud-init is complete.
1. https://cloudinit.readthedocs.io/en/latest/topics/boot.html
cloud-init runs when it's supposed to run; it has 4 stages[1].
What units don't wait for cloud-init?
In case you're creating scripts or units then:
Scripts can use:
cloud-init status --wait
Systemd Units can use:
After=cloud- init.target
This will ensure they don't run until after cloud-init is complete.
1. https:/ /cloudinit. readthedocs. io/en/latest/ topics/ boot.html