Add user-data after creation

  • Posted October 10, 2014

Is it possible to enable user-data after droplet creation?


@shivab You can access it using curl Check out the docs on the metadata service.

More importantly, I really want to store the discovery URL that I generated. Is the “user-data” stored somewhere so I can have easy access while trying to add a new machine to my cluster?

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Yeah, this sucks. Is there a feature request for this? Tweaking a script is going to be quite cumbersome with this workflow. And if any little thing changes requiring a tweak to the script, we have to destroy the droplet. Not good.

You can’t add cloud-config to an existing droplet. Just destroy it and create a new droplet with your user-data.