With the latest Chef, this can actually best be done by using old_config = Chef::Config.save here and then Chef::Config.restore(old_config) at the end.  No need for CONFIG_VARS anymore.