0

Here's the scenario: I'm using the same 3rd party parameterized class in 2 different places in my manifests.

I don't know where the 3rd party class will be included first and in both places, I need to pass a different parameter to the class.

Right now, I only include the class in both places since I don't know how to resolve my situation.

Any help appreciated :)

Thanks

4

1 回答 1

2

You can only declare a class once when you are using the syntax with Parameters.

include classname

can be used multiple times, but

class { 'classname':
   parameter => 'yada',
}

only once.

于 2013-04-12T04:40:18.433 回答