zabbix
zabbix copied to clipboard
Use attribute instead of run_list to search
for the moment we are using "recipe" or "recipes" to search a node in run_list.
Good practice is to use attribute like said here: http://www.getchef.com/blog/2014/02/03/evolution-of-cookbook-development/
An attribute for the search query would be ideal, yes. For example https://github.com/lusis/chef-logstash/blob/master/attributes/default.rb#L15 does it in a sane way - easy to just specify a role for the simple case, but allows you to customize the query if needed.