You'd have to run through the entire catalog of resources in that case. It
would certainly work, but I'm not sure if it would actually do what you
want.

Trevor


On Fri, Mar 7, 2014 at 10:37 AM, badgerious <badge...@hotmail.com> wrote:

> I should clarify my suggestion to say 'single @ class variable' with an
> attr_accessor rather than 'double @@ class variable', the former of which
> avoids some of the complications Trevor mentioned. (You could of course put
> the variable in any number of globally accessible places).
>
> Eric
>
>
> On Thursday, March 6, 2014 7:51:00 PM UTC-6, Trevor Vaughan wrote:
>
>> +1 to this idea from Eric.
>>
>> However, be VERY careful that you don't end up stepping on data across
>> runs. You'll need to clear that variable at each start and, if you use a
>> class variable, you'll need to make sure that they're all unique across ALL
>> types.
>>
>> Trevor
>>
>>
>> On Thu, Mar 6, 2014 at 5:59 PM, badgerious <badg...@hotmail.com> wrote:
>>
>>> Not sure if this will work as expected for your custom type, but a
>>> thought might be to set some (provider) class variable in #flush and then,
>>> in ::post_resource_eval, check if this variable is set and do the restart
>>> (so each flush does no actual work other than setting the flag).
>>>
>>> Eric
>>>
>>>
>>> On Thursday, March 6, 2014 1:23:39 PM UTC-6, Stefan Schulte wrote:
>>>>
>>>> Hi Erik,
>>>>
>>>> On 06.03.2014 09:28, Erik Dalén wrote:
>>>> > Isn't this what was done in http://projects.puppetlabs.com
>>>> /issues/3946 ?
>>>> > So should be available in 3.4.0+
>>>> >
>>>> > Was discussed in this mail
>>>> > thread: https://groups.google.com/forum/#!topic/puppet-dev/Iqs5jEGfu
>>>> _0
>>>>
>>>> thanks for finding the ticket and pull request for me. I have looked
>>>> into the implementation but if am not mistaken `post_resource_eval`
>>>> will
>>>> be called on every puppet run (after all resources are evaluated) no
>>>> matter whether resources where out of sync or not.
>>>>
>>>> This is not quite what I want, because I only want to restart my
>>>> application when one ore more resources have been changed.
>>>>
>>>> -Stefan
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Puppet Developers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to puppet-dev+...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/puppet-dev/c02cf41d-c30a-491c-970c-2c5d0f9d0a92%40googlegroups.com<https://groups.google.com/d/msgid/puppet-dev/c02cf41d-c30a-491c-970c-2c5d0f9d0a92%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> --
>> Trevor Vaughan
>> Vice President, Onyx Point, Inc
>> (410) 541-6699
>> tvau...@onyxpoint.com
>>
>>
>> -- This account not approved for unencrypted proprietary information --
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-dev/68c48065-1ac1-4698-b600-eaa4c45fc7ef%40googlegroups.com<https://groups.google.com/d/msgid/puppet-dev/68c48065-1ac1-4698-b600-eaa4c45fc7ef%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/CANs%2BFoX2ku0-c4A_551k5yAcncdysycPX%3DWx90HBeyM2s3mu%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to