Re: [Puppet Users] how can i determinate from one class if another class applied?

2010-10-15 Thread Bruce Richardson
On Fri, Oct 15, 2010 at 12:40:57AM -0700, walexey wrote: > Hello everybody! > How can i determinate from one class if another class applied to the > this node? Use the defined() function. -- Bruce What would Edward Woodward do? -- You received this message because you are subscribed to the Go

Re: [Puppet Users] how can i determinate from one class if another class applied?

2010-10-15 Thread Felix Frank
On 10/15/2010 09:40 AM, walexey wrote: > Hello everybody! > How can i determinate from one class if another class applied to the > this node? > You can use the defined() function. if defined(Class[my_class]) { ... } YOU SHOULD NOT DO THAT, though. There are problems, because puppet may include