Fill and set the config file with variables