^([^\.]*)(\..*)$
this regex is split into two groups based on "." delimiter. The first
group
contains the hostname while the second group is the domain name. You can
edit this to match your needs.
On Friday, September 14, 2012 5:05:34 PM UTC+3, ureal frank
wrote:>
> Hi there,
>
> I was reading Puppet Naming Conventions and in "Node names should
match
> the hostnames of the nodes" I have a doubt.
>
> What is ''secure/better/faster'' or correct way to do this
>
> a) node /^foo0\d+$/ {}
>
> b) node /^foo0\d+$\.bar$/ {} # using FQDN
>
> I have too many servers with hostnames almost in collision :/ foo01.foo
> and foo01.bar. but with very different FQDN''s.
>
> Thanks in advance for your help :)
>
> Regards
> Frank
>
--
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/-/aOKH1v7DKwIJ.
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.