Guy Knights
2012-Apr-26 23:38 UTC
[Puppet Users] Using backreferences from node name regex match
I appears that backreferences when using regexes in node names doesn''t work. Can anyone confirm this? If I''m incorrect, how do I go about using a backreference to the name regex within the node definition container? Thanks, Guy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/XaP039Sz-h0J. 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.
Nick Fagerlund
2012-Apr-27 01:00 UTC
[Puppet Users] Re: Using backreferences from node name regex match
Yeah, I''m pretty sure that''s not supported. But you could implement whatever you''re trying to do with a regular regex match, if you need to. Use the built-in $clientcert variable, which contains the node''s certname. (This assumes you''re doing the default behavior of using the certname as the node name. Hint: you almost certainly are.) On Apr 26, 4:38 pm, Guy Knights <g...@eastsidegamestudio.com> wrote:> I appears that backreferences when using regexes in node names doesn''t > work. Can anyone confirm this? If I''m incorrect, how do I go about using a > backreference to the name regex within the node definition container? > > Thanks, > Guy-- 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.
Guy Knights
2012-Apr-30 17:52 UTC
[Puppet Users] Re: Using backreferences from node name regex match
Ok, thanks Nick. I''ll look into using a regex match on the client cert (and yes, you''re right. I am :) On Thursday, 26 April 2012 18:00:24 UTC-7, Nick Fagerlund wrote:> > Yeah, I''m pretty sure that''s not supported. > > But you could implement whatever you''re trying to do with a regular > regex match, if you need to. Use the built-in $clientcert variable, > which contains the node''s certname. > > (This assumes you''re doing the default behavior of using the certname > as the node name. Hint: you almost certainly are.) > > On Apr 26, 4:38 pm, Guy Knights <g...@eastsidegamestudio.com> wrote: > > I appears that backreferences when using regexes in node names doesn''t > > work. Can anyone confirm this? If I''m incorrect, how do I go about using > a > > backreference to the name regex within the node definition container? > > > > Thanks, > > Guy-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/wYxT_7YMnKUJ. 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.