# attributes/default.rb
default[:foo] = "bar"
# chef environment
{
  "override_attributes": {
    "foo": null
  }
}

if node[:foo].nil?
  stuff
end