What you'll probably want is the tagged() function, not defined(). Someone correct me if I am wrong, but defined() is useful for checking if types or classes exist ("are known about") but does not check whether a class is DECLARED - there's a difference. Note the documentation sentence "This is useful for checking whether a class is defined and only including it if it is".
So if you have a master imports a manifest with a class called "foo" then: if defined(foo) == true (always) if tagged(foo) == true (only if your node has 'include foo') What Felix says about the defined() function I beleive only applies to checking for specific resources, which depends on the specific parse order (and all you have to do is run 'puppetd --noop --test -- evaltrace' to see the parse order changes ALL the time). On Oct 15, 8:40 am, walexey <wale...@gmail.com> wrote: > Hello everybody! > How can i determinate from one class if another class applied to the > this node? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.