Question

Creation and configuration of new droplets

I want to be able to automatically create new droplets using custom configurations without the need to configure the server myself, for example:

I want a server with:

  • Nginx installed with some default config files.
  • Postgresql installed with the initial installation by default.
  • 1gb of swap memory
  • Etc…

I’m not really sure if there is some software that already do this for me, I know I can write some scripts to do everything for me, but. maybe there is something that already do that.


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.

Accepted Answer

Hi!

There are a few different ways to do that—I’ll list the most common ones. You can:

  1. spin up a new Droplet, install, for example, Nginx on it, and apply the default config files that you prefer, and take a snapshot of it. Then, whenever you want to spin up a new web server Droplet, you can just choose the said snapshot and quickly get up and running.
  2. use a configuration management software to automate deploying and configuring new servers. Take a look at the following tutorial series:
  1. use User Data to run a script of your own when the Droplet first boots that installs and sets everything up the way you like it.

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.