I like it. 

You could also call the class like we do with stages:

class { c: ordered => strict, stage => main }

This could influence the way block[x] -> block[y] is called.

It would make determining order and troubleshooting clearer.

Anyway, put up a feature request and I'll vote for it.

Cheers,
Den

On 05/07/2011, at 17:03, vagn scott <[email protected]> wrote:

> On 07/05/2011 01:57 AM, Peter Meier wrote:
>> Can also be:
>> 
>>   
> Yes, I know.  Now expand this one, and maybe you will get my point.
> 
> -----------------
> 
> Thinking about this some more, I like block better,
> with order optional:
> 
> class c {
> 
>        block { "x":    # any order
>                package { ... }
>                file { "aaa": }
>                exec { "bbb": }
>                file { "ccc": }
>                include foo
>        }
>        block { "y":    # order matters
>                $ordered => true  # default is false
>                file { "ddd": }
>                exec { "eee": }
>                include baz
>                file { "fff": }
>        }
>        block { "z": # any order
>                file { "ggg": }
>                exec { "hhh": }
>                file { "iii": }
>        }
> 
>        Block[ x ] -> Block[ y ] -> Block[ z ]
> 
> }
> 
> meaning all in x before any in y, then y in sequence,
> before any in z
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" 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-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" 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-users?hl=en.

Reply via email to