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.

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
August 8, 2016
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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel