Report this

What is the reason for this report?

Can I get a droplet without all this cloud-config stuff?

Posted on April 9, 2015

I haven’t had a droplet here in a while, now there is a bunch of “cloud-config” stuff getting in the way. Is there a way to deploy without it, or at least an easy way of getting rid of it?



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!

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.

There are a couple options:

1.) If you use an Ubuntu 12.04 or older image these do not support cloud-config

2.) You could actually use cloud-config to remove cloud-config. By launching your droplet with a bash script in the user-data field that will remove any cloud-config files and do an apt-get purge cloud-init, Cloud-config should then execute your script removing it’s files and itself on first boot. I’ve included an untested example below:

#!/bin/bash
export DEBIAN_FRONTEND=noninteractive;
apt-get -y purge cloud-init;
rm -Rf /var/lib/cloud;
rm -Rf /etc/cloud;

I would recommend testing this on a new droplet and making sure it removes everything you need it to before using it on anything you will use in production.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.