On Oct 27, 2009, at 5:01 PM, R.I.Pienaar wrote:

>
> hello,
>
> ----- "Luke Kanies" <[email protected]> wrote:
>
>> On Oct 27, 2009, at 4:37 PM, Markus Roberts wrote:
>>
>>>> For instance, I know Volcane has mentioned that the reason he
>>>> overrides environments on clients is because it's the only way he
>>>> can force ordering.
>>>
>>> As in having proto-environments that you sequentially pass through
>>> on the way to the final environment (no skipping stages!) or am I
>>> missing the point here?
>>
>> More like "I know X has to be done before my main configuration  
>> works,
>> so I put X in a special 'setup' environment and run it once".
>> I.e., exactly what I desperately want to avoid and am embarrassed is
>> necessary.  I think fixing this is probably the real goal here.
>
>
> We've often discussed 'anchor' classes on the graph.
>
> So there might be a class beforehook and afterhook that if nothing  
> gets done simply ends up before and after all classes.
>
> But if I now do:
>
> file{"/foo":
>   require => Class["afterhook"]
> }
>
> or
>
> file{"/foo":
>   before => Class["beforehook"]
> }
>
> I would basically ensure these things happen first or last, and if i  
> had 10 things to happen first - configure yum, create repos, make  
> cache - I'd just make them all happen before beforehook.
>
> I'd hate to imagine the hell of coding this behavior though

My guess is that someone well-versed in graphs could knock this out  
pretty quickly, but that someone isn't me. :/

Solving this just got bumped up pretty heavily on my priority list, so  
you should probably expect a solution in rowlf.  I've just no idea wtf  
it'll be. :)

-- 
Normal is getting dressed in clothes that you buy for work and driving
through traffic in a car that you are still paying for - in order to
get to the job you need to pay for the clothes and the car, and the
house you leave vacant all day so you can afford to live in it.
     -- Ellen DeGeneres
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to