For this purpose, you can use "recipes" - special scripts that are executed on a virtual machine after os deployment. If you want a certain os to be installed on VPS, you can use "OS templates".
For more information, please refer to the following articles:
*
Recipes
*
Recipes, technical details
*
OS templates