Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 314 Bytes

chef_default_attributes.md

File metadata and controls

7 lines (5 loc) · 314 Bytes
  • Default attributes: this loads the information from the default data bag and merges the values into our current node.

    Default attributes

    default_data_bag = data_bag_item("default", "sample") node.default_attrs = Chef::Mixin::DeepMerge.merge(node.default_attrs, default_data_bag.to_hash)