On Thursday, November 8, 2012 5:21:51 PM UTC-6, Jo wrote:
>
> >> This is now https://projects.puppetlabs.com/issues/17507 
>
> On Nov 8, 2012, at 2:55 PM, R.I.Pienaar wrote: 
> > also see http://projects.puppetlabs.com/issues/5286 I think the 
> > hard part here is figuring out what is right behaviour 
>
>
Consider also issue 
http://projects.puppetlabs.com/issues/5876<http://projects.puppetlabs.com/issues/5286>,
 
which is related.
 

>
> I don't think either situation is hard to determine what the expected 
> behavior should be. I updated 5286 with some thoughts.



Me, too.

 

>
>
> For package installs, either one of the following behaviors is 
> correct/intuitive. I prefer the first one: 
>
> 1. Check if the package is installed. If it is installed and has a 
> schedule, don't check the version for update or removal. If it isn't 
> installed and should be, install it outside of the schedule. 
>
> *OR* 
>
> 2. Do not run things which fail dependency on a package which is not 
> installed. 
>


Although it would produce more favorable behavior for the particular 
manifests at issue here, I can't agree with option (1).  The question 
should be about whether Puppet applies the Package resource, not about the 
details of what is involved in applying it under one set of circumstances 
vs. another.

I more or less agree with (2), but I would couch it in different terms:

2'. Do not attempt to apply a resource that has a 'require' relationship 
(or equivalent) with a resource that is not successfully applied, and
2'a. Do not consider resources to have been successfully applied when they 
are excluded from application by a schedule.

The first is a Puppet invariant, so the second is the key. 


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/FyX3f4Ciz_gJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to