This works:
$ cat foo.pp
define aaa($x=1) {
notice("\$x=$x")
}
class b {
aaa { "xxx": x=>2 }
}
class c inherits b{
Aaa["xxx"] { x=>3 }
}
include c
----------------------
But this doesn't:
----------------------
$ cat foo.pp
define scope::aaa($x=1) {
notice("\$x=$x")
}
class b {
scope::aaa { "xxx": x=>2 }
}
class c inherits b{
Scope:aaa["xxx"] { x=>3 }
}
include c
The reason I want to do this is that I was writing my own define of
yumrepo -- I was hoping that if I fully qualified it (yum::yumrepo),
it wouldn't conflict with the default one.
--
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.