X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d1b835abf6c54e768ead54dd0056011554ba0b71..9fcfa1aacf134b9db294d03cd9b6ba9a1527f154:/cookbooks/munin/recipes/server.rb?ds=sidebyside diff --git a/cookbooks/munin/recipes/server.rb b/cookbooks/munin/recipes/server.rb index 881b7d5d8..bda824f44 100644 --- a/cookbooks/munin/recipes/server.rb +++ b/cookbooks/munin/recipes/server.rb @@ -46,9 +46,7 @@ munin_plugin "rrdcached" expiry_time = 14 * 86400 clients = search(:node, "recipes:munin\\:\\:default").sort_by(&:name) -frontends = search(:node, "recipes:web\\:\\:frontend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.map(&:name).sort -backends = search(:node, "recipes:web\\:\\:backend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.map(&:name).sort -tilecaches = search(:node, "roles:tilecache").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.sort_by(&:name).map do |n| +frontends = search(:node, "recipes:web\\:\\:frontend").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.sort_by(&:name).map do |n| { :name => n.name.split(".").first, :interface => n.interfaces(:role => :external).first[:interface].tr(".", "_") } end renderers = search(:node, "roles:tile").reject { |n| Time.now - Time.at(n[:ohai_time]) > expiry_time }.sort_by(&:name).map do |n| @@ -64,9 +62,8 @@ template "/etc/munin/munin.conf" do group "root" mode "644" variables :expiry_time => expiry_time, :clients => clients, - :frontends => frontends, :backends => backends, - :tilecaches => tilecaches, :renderers => renderers, - :geocoders => geocoders + :frontends => frontends, :geocoders => geocoders, + :renderers => renderers end apache_module "fcgid"