How does "Enable User Data" work?

September 15, 2014 11.3k views

How can I get this user data once inside the running droplet? Is this an environment variable? Do I need to run any command? Can I read its contents from inside the crontab config?

1 comment
1 Answer

The Enable User Data setting allows you to pass arbitrary data into the user-data key of the DigitalOcean Metadata service. It is available in regions that are running v1.5 of our backend.

Enable User Data

You may run this command on a droplet, to retrieve the user-data that you supplied at its creation time:

curl -w "\n"

Currently, the Enable User Data setting is only required for the clustering of CoreOS droplets. For more information about using the setting with CoreOS, read this tutorial: How To Set Up a CoreOS Cluster on DigitalOcean

If you are planning on using CoreOS in your infrastructure, the first thing you will want to set up is a CoreOS cluster. In order for CoreOS machines to form a cluster, their etcd2 instances must be connected. In this tutorial, we will give step-by-step instructions to...
Have another answer? Share your knowledge.