Update default.rb

Node attributes are read-only during chef-client run. Using local variable instead.