I think something like this is a better idea:
```
search_string = "recipes:ceph\:\:mon AND chef_environment:#{node.chef_environment}"
```
"recipes" search in expanded run-list.
It permit to match a node with has a role who add this recipe.