There are multiple reasons Chef can display the following error message NoMethodError ————- Undefined method or attribute `…’ on `node’ There are many ways to reference an attribute in a Chef recipe: node[‘ATTRIBUTE_NAME’] (the recommended style) node[“ATTRIBUTE_NAME”] node[:ATTRIBUTE_NAME] (use it only if the single or double quotes (‘ or “) would cause a problem …
Continue reading “Undefined method or attribute error in a Chef recipe”