[Puppet Users] Re: FW: parameters to a defined type from the puppet console

Paul Tötterman
2013-10-09T06:17:20Z

>
> I can''t use the same class with different parameters for the same
node


Classes can only be declared once per node. If you want multiple somethings
per node, you need defined types.

Would something like this work?

define foo($param) {
  notice { $param: }
}

node example {
  foo { ''test1'': }
  foo { ''test2'': }
}

Cheers,
Paul