FreeBSD droplets lack user-data support?

Posted April 18, 2015 5.2k views
MiscellaneousGetting StartedFreeBSD

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?

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.

Submit an Answer
2 answers

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!

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.