How to write a script to deploy OpenSTF on 100% automated Ubuntu (all languages) [on hold]

I just want a script on how to deploy OpenSTF on Ubuntu and CoreOS and 100% automated. I've been trying to figure out how to deploy the STF master server on Ubuntu with one click, but it still does not work and so I want a script to run on Ubuntu.