I have a problem when using search inside a chef recipe:
- When my cookbook runs using chefserver, the next search is successfull:
search(:node, %Q{nginx_vhosts_#{name}:*})
- When my cookbook runs using chef-zero (with kitchen) it is not successful, it could not find nothing.
I have configured correctly the nodes_path in my .kitchen.yml file.
I could find a workaround using search like: search(:node, %Q{nginx:vhosts})
and adding after some logic to match my purposes.
So my question is: Why the syntax search(:node, param1_param2_#{var}:*)
is not working?