On 05.07.2013 14:53, francois.lafont.1...@gmail.com wrote:
Hello everybody,
Yet, with "Stage['one'] -> Stage['two']", the classed are loaded in the
good order.

1) Is it normal ?

Yes.

2) I would like to have $var == "YES" whatever the order of classes in
the yaml file. Is it possible ?

tagged() (and all other functions) are parse-order dependent. The stage definition only establishes an application order. The recommended way forward is to express the configuration dependency explicitly like so:

  class meta($one = true) {
    if $one {
      include one
    }

    class { 'two': one => $one }
  }

or to directly integrate this into the class two. This depends on your actual use case.

Regards, David

--
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to