I created my recipe off the install.rb resource. It pulls the properties from data bags and attributes file; I skip DREPLAY_CLT, security mode check and netfx35 checks; I do use config_file_path, x86_64 and sql_sys_admin_list; template_config builds the confi.ini file correctly; I use package_url but just pull in the package_name from attributes and skip checksum; I use the same passwords resource; and the package resource above matches the one in the install.rb. It is installing and creating the config.ini file all successfully. It works.
SO, why is a wrapper necessary just for chef to compare the package_name against the Ohai data when everything else works successfully???
The custom resource calls the package resource, where the check to compare the product code happens. IF the check happens in the package resource code underneath, why does it need the wrapper? IF the package resource code underneath has the correct name specified, it should successfully complete it's check right? It is not in my scenario, using almost the exact same code as the install.rb custom resource in a recipe, but yet it installs completely successfully???