- From: Arnold Krille <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Changes to munin-recipe
- Date: Tue, 18 Dec 2012 23:21:15 +0100
On Tue, 18 Dec 2012 19:16:09 +0000 Tim Smith
<
>
wrote:
>
I would highly suggest using an attribute that default to the old
>
method. That's what I added in the Nagios cookbook with the
>
multi_environment monitoring concept. If the user wants to grab
>
clients from all environment they can simple set the attribute to
>
true.
>
>
if node['nagios']['multi_environment_monitoring']
>
nodes = search(:node, "hostname:[* TO *]")
>
else
>
nodes = search(:node, "hostname:[* TO *] AND
>
chef_environment:#{node.chef_environment}")
>
end
In my yet-to-be-opened backuppc-recipe I concat the
extra_environments_list and node.environment and build the
search-string from that.
Have fun,
Arnold
Attachment:
signature.asc
Description: PGP signature
Archive powered by MHonArc 2.6.16.