This is a kludge, and likely shouldn't work in puppet. It's certainly against the core design and probably just a bad idea.
node 'foo' {
include appender
include speaker
$bob = ''
appender::append { 'one':
$text => 'one',
before => Appender::Append['two'],
}
append::append {'two':
$text => 'two',
}
speaker::speak {'truth':
$lies => $bob,
require => Appender::Append['two'],
}
}
class appender {
define append($text) {
$bob += "$text "
}
}
class speaker {
define speak($lies) {
notice("the speaker $lies")
}
}
No comments:
Post a Comment