[CentOS] How to start a script to complete configuration

Mon Nov 7 19:35:55 UTC 2016
Bernard Fay <bernard.fay at gmail.com>


We have a virtual environment based on XenServer. In this environment I
defined a template for CentOS 7 servers.

I would like to start a script a boot time to complete the configuration of
new VMs based on this template. How can I have a script started before any
login prompt to ask question to the user to complete the configuration such
as hostname, IP address, etc?