You can use these as a start.
1. Salt. https://www.digitalocean.com/community/tutorials/automated-provisioning-of-digitalocean-cloud-servers-with-salt-cloud-on-ubuntu-12-04 Automated Provisioning of DigitalOcean Cloud Servers with Salt
or
2. Puppet. This may or may not do what you're...