Rich Rauenzahn
2011-Jan-26 18:18 UTC
[Puppet Users] redefining resource with a fully qualified name
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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Rich Rauenzahn
2011-Jan-26 18:39 UTC
[Puppet Users] Re: redefining resource with a fully qualified name
On Wed, Jan 26, 2011 at 10:18 AM, Rich Rauenzahn <rrauenza@gmail.com> wrote:> class c inherits b{ > Scope:aaa["xxx"] { x=>3 } > }I remember seeing an example now: Scope:Aaa["xxx"] -- capitalize both components. Rich -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.