Hi,
I'm using tags in resource defaults to define resource ordering inside a
single class, preventing at the same time dependency cycles with other
classes, like this:
class myname::myclass {
# defaults
User { tag => "this_class" }
File { tag => "this_class" }
Service { tag => "this_class" }
# dependencies
User <| tag == "this_class" |> ->
File <| tag == "this_class" |> ->
Service <| tag == "this_class" |>
# resources, many of each type
user {
...
}
file {
...
}
service {
...
}
}
But this doesn't seem to work: I get errors, and by looking at the report I
can see that the errors are due to dependencies not being respected, e.g.
some service resources are applied before some file resources and so on.
Am I missing anything?
BTW, I was supposing there are no problems with "nested" dependencies,
right?
I mean, the class itself is part of a dependency chain together with other
classes, and the chain works fine. But I suppose there is no problem with
creating dependencies contained inside a class which is part of the higher
chain.
Thanks.
Marco
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/c654e019-a720-4176-8390-161eee2a323c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.