FreeBSD droplets lack user-data support?

I recently spun up the Digital Ocean FreeBSD 10.1 image, but sadly it appears that it doesn’t not respect the user-data provided unlike the Linux images.

For example the following simple user data runs fine on AWS, but on Digital Ocean fails to run:

# curl

touch /tmp/user-data-did-run

Can see it didn’t run post-launch with:

# ls -l /tmp/user-data-did-run
ls: /tmp/user-data-did-run: No such file or directory

An issue posted on the upstream source code for bsd-cloudinit ( suggests that support doesn’t exist for user data with bsd cloud init yet.

Am I correct in this conclusion, or should I be passing user data to FreeBSD droplets in a different format? Additionally, if user data support is lacking, is there any plan for Digital Ocean to add it?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

OK thanks for the quick answer @asb. Might be worth adding a warning to the droplet creation screen if someone provides user data and choose FreeBSD?

Hopefully someone from the community adds support into bsd-cloudinit if they feel suitably motivated, looks like mostly a case of porting the feature from the original cloudinit project.

That’s correct. As you suspected, we are using bsd-cloudinit to do some internal configuration on boot, but it does not currently support running user-data. Of course, the metadata service is available from FreeBSD droplets and and you can pull down user-data for your own use, but it won’t be automatically be run.

Building out support for that isn’t on the roadmap right now, but if we see enough demand we might re-prioritize.

Thanks for the feedback!