Hello all, I''ve been trying to configure node-based regex entries and puppet seems to be giving me a hard time with this one. Our system naming convention is this: sbx-<name>-<number>. For instance, we have: sbx-circle-01 and sbx-square-01 both on the same network. I''m using this entry: node /^sbx-[^\.*]\-\d\d$/ and I suspect I''m missing something as I don''t get an error when running sbx-circle-01 against it, but the manifests never get pulled down. Does anybody have any suggestions on how I might fix this up? If I wasn''t already bald, I would have pulled my hair out trying to figure this one. As always, thanks in advance for the help and support. Cheers, Mike -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
rubular.com suggests that the regex should be ^sbx-.*-\d\d$ On 13 March 2013 12:16, Mike Reed <mjohn.reed@gmail.com> wrote:> Hello all, > > I''ve been trying to configure node-based regex entries and puppet seems to > be giving me a hard time with this one. > > Our system naming convention is this: > > sbx-<name>-<number>. > > For instance, we have: sbx-circle-01 and sbx-square-01 both on the same > network. > > I''m using this entry: node /^sbx-[^\.*]\-\d\d$/ and I suspect I''m missing > something as I don''t get an error when running sbx-circle-01 against it, > but the manifests never get pulled down. > > Does anybody have any suggestions on how I might fix this up? > > If I wasn''t already bald, I would have pulled my hair out trying to figure > this one. > > As always, thanks in advance for the help and support. > > Cheers, > > Mike > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Hey Iain, Thanks for the reply and the suggestion. That one got me close but didn''t give me exactly what I needed. Consequently, this did: node /^(sbx-.*-\d\d$)/ Thanks again for the suggestion and the help. Cheers, Mike On Tuesday, March 12, 2013 6:54:50 PM UTC-7, nseagoon wrote:> > rubular.com suggests that the regex should be ^sbx-.*-\d\d$ > > On 13 March 2013 12:16, Mike Reed <mjohn...@gmail.com <javascript:>>wrote: > >> Hello all, >> >> I''ve been trying to configure node-based regex entries and puppet seems >> to be giving me a hard time with this one. >> >> Our system naming convention is this: >> >> sbx-<name>-<number>. >> >> For instance, we have: sbx-circle-01 and sbx-square-01 both on the same >> network. >> >> I''m using this entry: node /^sbx-[^\.*]\-\d\d$/ and I suspect I''m >> missing something as I don''t get an error when running sbx-circle-01 >> against it, but the manifests never get pulled down. >> >> Does anybody have any suggestions on how I might fix this up? >> >> If I wasn''t already bald, I would have pulled my hair out trying to >> figure this one. >> >> As always, thanks in advance for the help and support. >> >> Cheers, >> >> Mike >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to puppet-users...@googlegroups.com <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.