You can only override parameters with inheritance. Consider the
following:
class parent {
file { "/tmp/file": ensure => present, mode => 0600, }
}
class child {
File["/tmp/file"] { mode => 755, }
}
include parent, child
Class child cannot override File["/tmp/file"]'s permissions here.
Instead, do this (parent as above)
class child inherits parent {
File["/tmp/file"] { mode => 755, }
}
include child
Note parent does not need to be included, since it is inherited.