- From: Steffen Gebert <
>
- To:
- Subject: [chef] Re: Notifications order and grouping
- Date: Sun, 22 Jan 2012 18:14:15 +0100
Thanks for your response, Daniel!
>
Depending on your constraints, you may be best off creating an LWRP for
>
your group of resources and notifying it.
How can I notify that LWRP?
Created it like this in providers/apply_config.rb:
>
action :run do
>
execute "SetPermissions" do
>
...
>
end
>
>
# Rebuild ZZZAAuto.pm
>
execute "RebuildConfig" do
>
...
>
end
>
end
But how to notify it? My only guess was
>
notifies :run, "providers[apply_config]"
which, of course, does not work.
Thanks in advance
Steffen
On 21.01.2012, at 20:07, Daniel DeLeo wrote:
>
>
>
On Saturday, January 21, 2012 at 2:41 AM, Steffen Gebert wrote:
>
>
> Hi list!
>
>
>
> Can I be sure that resources notified by delayed notifications are
>
> executed in the same order as they were notified? Or is this
>
> non-deterministic?
>
Delayed notifications are queued in the order received. One possible gotcha
>
here is that duplicate notifications are quashed, so if you send
>
notifications A, B, C, A, you end up with just A, B, C, and the last one is
>
ignored.
>
>
>
>
> And is it possible to group resource and notify them at once? e.g. I want
>
> to execute some scripts but don't want to list every single one of them at
>
> many places. So can I just notify one resource, which then includes a
>
> bunch of resources to execute?
>
Depending on your constraints, you may be best off creating an LWRP for
>
your group of resources and notifying it.
>
>
>
>
> Thanks for your help
>
> Steffen
>
>
>
>
--
>
Dan DeLeo
>
>
>
Archive powered by MHonArc 2.6.16.