Ah, well the way this is set up is that it only affects defined types.

So:

autorequires(:file) do
  ['foo','bar']
end

autonotify(:exec) do
  ['fancy_stuff']
end

However, if you're writing defined types, you're probably adept enough to
not shoot yourself in the face (hopefully). In this case, it's VERY clear
what you're doing since all of the functionality is strictly separated.

I started out just doing require and before but realized that I could stuff
the other two in there easily and would prefer to have the functionality if
I need it.

Trevor

On Tue, Sep 23, 2014 at 4:14 PM, Felix Frank <
felix.fr...@alumni.tu-berlin.de> wrote:

> On 09/23/2014 10:08 PM, Trevor Vaughan wrote:
> > More importantly, when I want to notify a service *but it might not
> > exist*, I need autonotify because the Puppet DSL doesn't allow me to
> > not care if a resource exists.
>
> Hey Trevor,
>
> are you trying to goad me into speaking out for the defined() function?
> I'm not falling for that :)
>
> I can see the pain point (although I cannot say I feel the pain, really).
>
> It would be neat if this would come with a batch of matching
> metaparameters, so that I can set 'autonotify => false' if I'm chicken.
> This should perhaps even be the default. Thoughts?
>
> Best,
> Felix
>
> --
> 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/5421D4B1.3010900%40Alumni.TU-Berlin.de
> .
> 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%2BFoXg%3DQAZBjbTBTUUHC4-BeXi32%2BZFC%3DoO_ELhop5ZobXWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to