Hi,
a question regarding combining *inherit* and *include*: I have variable(s) 
defined in a father class and child classes should access these - but there 
should always be the possibility to override the default value. Let's 
assume this scenario:

There's a module "module_x" and these directories: 
$moduledir/module_x/manifests/ and there's an "init.pp" with this content:

class module_x {
$var = 'value'

include module_x::child
include module_x::another_child
include module_x::another_child2
include module_x::another_child3
...    
}


 Class "module_x::child" in file "child.pp" should be able to use "$var" 
with its default value - but should also be allowed to override it. It 
would look like this:

class module_x::child inherits module_x {
// wants to use a default value for $var but should be able to override it.
}


Question: Is there somehow a problem that class "child" inherits class 
"module_x" *with all its many includes*?

Thanks in advance,
Christian

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to