Use the to_yaml method to create configuration