Whats wrong with using chained resources?

class x {
  file { "a":
  } ->
  exec { "b":
  } ->
  exec { "c":
  } ->
  exec { "d":
  }
}

ken.

On Tue, Jul 5, 2011 at 4:40 AM, vagn scott <vagnsc...@gmail.com> wrote:
> Sometimes things just have to happen in sequence.
> It is the simplest of relations, but puppet really
> has no convenient, non-fiddly way to express it.
> So, how about
>
>
> class x {
>
>        order { "z":
>
>                file { "a":
>                        ...
>                }
>
>                exec {
>                        "b": ... ;
>                        "c": ... ;
>                        "d": ... ;
>                        "e": ... ;
>                }
>        }
>
> }
>
> Things inside order { } happen in the order
> that they appear.  They implicitly have before
> dependency assigned according to their position.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> 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.
>
>

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