Automating setup/config of a new Droplet

September 18, 2014 2.8k views

Just looking for some guidance here. We are thinking of using DO for all of our clients websites in the future, but would get them to create their own account and handle payment, etc. Although the automatic install of LAMP, etc. is awesome, it only goes so far. Once up-and-running we still have to configure domains, install things like curl, etc.

Is there any way of creating a post-install script that would do all of this for us? I realise this is more of a Linux question than a DO-specific one but if anyone could point us in the right direction we’d be most grateful.

1 Answer

Hi !

Yes you can !

You can :

  • launch your script when your bootlet boots using systemd or init script
  • use any configuration management tool like Puppet to have this configuration automatically deployed on all your droplets.
  • use DO templates droplets to install the packages needed and reuse this template to create new droplets

So, you can do alll that you want thanks to DO droplets : the only limit would be your imagination ;)



Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!