By Jasmilner
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.