Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Attributes
- `node['munin']['max_processes']` - Maximum number of simultaneous Munin-update processes. When not set, munin will use as many as necessary. Default is to use as many as necessary.
- `node['munin']['max_graph_jobs']` - Maximum number of parallel processes used by munin-graph when calling rrdgraph, default is "6"
- `node['munin']['max_cgi_graph_jobs']` - Maximum number of parallel munin-cgi-graph or munin-fastcgi-graph jobs, default is "6"

- `node['munin']['nodes']` - An array of additional nodes. Each array element is an object with `fqdn` and `ipaddress` as required keys.

Recipes
-------
Expand Down
4 changes: 4 additions & 0 deletions recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
end
end

if node['munin']['nodes'].is_a?(Array)
munin_servers += node['munin']['nodes']
end

if munin_servers.empty?
Chef::Log.info 'No nodes returned from search, using this node so munin configuration has data'
munin_servers = [node]
Expand Down