Update variables.rb to add conditional set.

This was originally in the deploy.rb recipe, but I do not see a reason
why it shouldn't be exposed for everything. Ran into several issues
having to monkey patch it in for custom recipes related to datacenter
failover.