Generally when working with complex puppet modules, I will set variables at the node level or inside a class. e.g.,
node 'foo.com' {
$file_owner = "larry"
include bar
}
class bar {
$file_name = "larry.txt"
include do_stuff
}
class do_stuff {
file { $file_name:
ensure => file,
owner => $file_owner,
}
}
How/when/why does parametrized classes help when this situation? How are you using parametrized classes to structure your puppet modules?