Report this

What is the reason for this report?

Creation and configuration of new droplets

Posted on August 7, 2016

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.



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.

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.

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.