How can we create our desired config of Droplets instead of pre-defined config?

I would like to create our own desired config of droplets, Is it possible to do or what.


Submit an 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 few ways that you can create Droplet’s pre-configured with the software and applications you want. The first would be to use a “cloud-config” script to pre-install and configure what you need on first boot. The scripts can be entered when you create the Droplet:

DigitalOcean Control Panel

This allows you to write reusable scripts that will get you up and running quickly. Check out this GitHub repo for a number of examples:

Another option for creating a pre-configured Droplets is to take a snaphot of one that you’ve already set up. You can then use that as the base for any new Droplets that you create. For more general info on snapshots, see this tutorial: DigitalOcean Backups and Snapshots Explained.

You can also automate the process with tools like Packer, which help you build reusable Droplet Snapshots. See: How To Create DigitalOcean Snapshots Using Packer on Ubuntu 16.04