change search by role / recipe / ... to an attribute see it in: http://www.getchef.com/blog/2014/02/03/evolution-of-cookbook-development/

This commit is contained in:
Guilhem Lettron
2014-02-05 22:42:45 +01:00
parent 076540129d
commit 90b68b1bea
2 changed files with 3 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ def get_mon_nodes(extra_search=nil)
search_string = "(#{search_string}) AND ceph_config_environment:#{node['ceph']['config']['environment']}"
end
else
search_string = "role:ceph-mon AND chef_environment:#{node.chef_environment}"
search_string = "ceph_is_mon:true AND chef_environment:#{node.chef_environment}"
end
unless extra_search.nil?