- From: Alex Hewson <
>
- To:
- Subject: [chef] Re: Re: Calling Notify from Within a Provider
- Date: Thu, 20 Mar 2014 13:30:50 +0000
Hi Tom,
Many thanks for this - it cleared up the problem immediately.
Cheers,
Alex.
On 20/03/2014 11:54, Tom Duffield
wrote:
"
type="cite">
There is a technical reason that I'm sure others
could probably explain more clearly than I could, but the
"simple" answer is that when you use use_inline_resources you
create a separate run_context containing only the resources from
within the provider. The resources within the provider are not
aware of the existence of the service resource. The solution is
to have your custom resource notify the service to restart in
your recipe:
provider_resource_test_thing
“an_instance_of_thing" do
notifies :restart, "service[your_service]"
end
--
Alex Hewson
phone: +44 7895 265219 email:
">
skype: alex.hewson
|
Attachment:
signature.asc
Description: OpenPGP digital signature
Archive powered by MHonArc 2.6.16.