Displaying 1 result from an estimated 1 matches for "mail_test1".
Did you mean:
mail_test
2007 Sep 13
3
Templates and undefined variables
...e thing to expect? If the "correct" approach is to
define all variables in the base class and then override it like this:
class test {
$var1 = "foo"
$var2 = ""
file { "/tmp/test": content => template("test") }
exec { "/bin/echo $mail_test1 , $mail_test2": }
node foo {
class test2 inherits test {
$var1 = ""
$var2 = "bar"
}
include test2
}
then I just get "foo" and "" (both in the file and the exec), which
strikes me as a bit odd - in particular it seems to differ from the
va...