Add functions to configure config file for each hosts groups