Creating configuration files using templates