Answer the question
In order to leave comments, you need to log in
How can you redefine a variable when inheriting a class in puppet?
I want to write the following construction:
class classA {
$a = "AAA"
notify { $a : }
}
class classB inherits classA {
$a = "BBB"
}
Calling
class { classB : } from the node, I
expect to see BBB in notifications, but pappet stubbornly shoves
Notice: AAA
Notice: /Stage[main]/Classa/Notify[AAA]/message: defined 'message' as 'AAA'
How to get BBB as output?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question