Ansible
Ansible is an open source IT configuration management and automation platform. It makes automation simple and effective.
Software
Start by installing syncthing
apt-get install ansible
SSH Keys
ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/kale/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/kale/.ssh/id_rsa Your public key has been saved in /home/kale/.ssh/id_rsa.pub
Transfer the public ssh key to the systems ansible is going to automate. This key is part of the domain_clone script.