On Monday, February 17, 2014 3:49:30 PM UTC+1, jcbollinger wrote:
 

> Yes, I believe the combination of two simple expressions into a complex 
> one via the "and" operator is what Felix was referring to.  Despite the 
> docs, it might be worthwhile to play around a bit to test the outlines of 
> the problem:
>
>    - Does it really work at all (for your version of the master)?  The 
>    docs are fairly reliable, but if you happen not to be on the latest Puppet 
>    then they might not apply.  Also, Puppet occasionally suffers regressions 
>    (which typically are fixed pretty quickly once PL is made aware of them).
>    - Is the failure related specifically to the 'tag' property, which is 
>    a bit special?
>    - Is the failure related to having two conditions on the same resource 
>    parameter?
>    
> I'll be happy to test this but I don't have much time to do it these days, 
unfortunately.
Anyway both master and agent run puppet 3.4.2.

Or we could return to my original remark that what you're doing is a bit 
> questionable.  Whether your code really ought to work notwithstanding, your 
> manifest set would be more robust if you wrapped all the managed resources 
> related to each piece of software into its own class or defined-type 
> instance.  If you have a lot of services and your declarations are 
> consistent in form, then using a common defined type and one instance per 
> (user, file, service) triple would make your manifests even cleaner, and 
> allow you to be more precise with relationships, too.
>

Indeed, I got rid of those dependencies between types in the meantime and 
I'm trying to maintain dependencies only between specific resources.
Your suggestion is interesting, maybe a bit overkill for my current needs 
but I'll keep it in mind for the future.

Thanks.
Marco

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/791ffd47-37a8-4220-ba1c-880f44d65fb0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to