Report this

What is the reason for this report?

How to make sure that cloud-init finished running?

Posted on July 31, 2015

Hello,

is there any way to detect when cloud-init has finished running from bash?

I am using packer to create an image, and I do some init from there to get to a point where later I run puppet and other things that require my cloud-config settings to have finished running.

Is there a way to say something like:

while cloudconfigrunning; do
sleep 1
done

Ideally I would want to have a way that is platform agnostic.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.