Sorry if this has been covered before, but I couldn''t find it in a cursory search. If you have a module: /etc/puppet/modules/foo And you have a module: /etc/puppet/modules/bar/manifests/foo.pp Then all references to ''foo'' within that namespace seem to scope down to the local foo; is this correct? So, in /etc/puppet/modules/bar/manifests/baz.pp, if I have the line: include ''foo'' Then it will always grab ''bar::foo'', not ''foo'' as I desire. Is this by design, or a defect? Puppet 0.24.9 Thanks, Trevor -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaughan@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- 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.
----- "Trevor Vaughan" <tvaughan@onyxpoint.com> wrote:> Sorry if this has been covered before, but I couldn''t find it in a > cursory search. > > If you have a module: > > /etc/puppet/modules/foo > > And you have a module: > > /etc/puppet/modules/bar/manifests/foo.pp > > Then all references to ''foo'' within that namespace seem to scope down > to the local foo; is this correct? > > So, in /etc/puppet/modules/bar/manifests/baz.pp, if I have the line: > > include ''foo'' > > Then it will always grab ''bar::foo'', not ''foo'' as I desire. > > Is this by design, or a defect?By design I''d say, you can do: include ::foo to get the top level one. though there''s a few points where the language blows up with this syntax so your milage might vary -- 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.
Hmm..I didn''t think about that. That does indeed appear to work. Most interesting. Thanks! Trevor On Mon, May 17, 2010 at 5:47 PM, R.I.Pienaar <rip@devco.net> wrote:> > ----- "Trevor Vaughan" <tvaughan@onyxpoint.com> wrote: > >> Sorry if this has been covered before, but I couldn''t find it in a >> cursory search. >> >> If you have a module: >> >> /etc/puppet/modules/foo >> >> And you have a module: >> >> /etc/puppet/modules/bar/manifests/foo.pp >> >> Then all references to ''foo'' within that namespace seem to scope down >> to the local foo; is this correct? >> >> So, in /etc/puppet/modules/bar/manifests/baz.pp, if I have the line: >> >> include ''foo'' >> >> Then it will always grab ''bar::foo'', not ''foo'' as I desire. >> >> Is this by design, or a defect? > > By design I''d say, you can do: > > include ::foo > > to get the top level one. though there''s a few points where the language blows up with this syntax so your milage might vary > > -- > 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. > >-- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaughan@onyxpoint.com -- This account not approved for unencrypted proprietary information -- -- 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.