Question

Automating setup/config of a new Droplet

Posted September 18, 2014 2.9k 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.

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.

×
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 ;)

Regards,


rustx

Submit an Answer