Question

I'd like to find out if this is possible

Posted October 13, 2019 274 views
Automated Setups

I have a service that sells fully built WordPress websites to my customers. When they subscribe to my service, I manually clone a copy of a complete wordpress install and database to a server , then send them the credentials to login and manage the site.
Right now, because this is a manual process, there is a delay in them getting access to their website.
What would like to do is have the process automated, so that as soon as they subscribe to the service , an automation is initiated that creates a server, installs a clone of a wordpress install with the database, assigns a subdomain, and created the SSL. This way they get almost immediate access to their site.

I’d just like to know if this setup is possible or feasible with digital ocean

thanks!

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 @colbyalbo,

Yes, this is possible however there are multiple components which you’ll need to take in account.

Let’s start from the beginning

Since you are here, I assume you’ll be creating a droplet per client, is that correct? Digital Ocean offers API which lets you create droplets remotely. To find out more, you’ll have to read the DOCUMENTATION

Let’s say that was the first step, creation of a droplet.

The second step would be to copy a complete wordpress installation and database to a server. Both can be automated with an automation engine like Ansible for example. Digital Ocean have some great tutorials on that as well - Ansible Cheat Sheet and Automation of Ubunt 18.04 -Ansible.

Going to the third step, you can create a script to install an SSL as well.You can use all kinds of languages from python,perl,php to even bash.

All in all, everything is possible if you have the time. This idea of yours is pretty great but it will take some time to write everything up. Then again, it will help you out in the future.

Good Luck!

Kind regards,
KDSys

by Erika Heidi
Ansible is a modern configuration management tool that facilitates the task of setting up and maintaining remote servers. This cheat sheet-style guide provides a quick reference to commands and practices commonly used when working with Ansible.
Submit an Answer