Hi.
I've seen in many modules at puppet-forge this kind of organization:
class myclass(
$somevar='value'
) inherits myclass::params {
file { $mydir:
ensure => directory,
}
}
class myclass::params {
$mydir = '/some/path'
}
Now, I wonder how can I override $mydir from node definition? Or am I
missing the whole point, am I supposed to put $mydir inside standard
brackets and then call the class with something like:
node mynode.mydomain.com {
class myclass($mydir='/some/other/path')
}
Thank you
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.