Re: Puppet conventions

29 views
Skip to first unread message

Cosmin-Viorel Ilie

unread,
Sep 14, 2012, 10:52:17 AM9/14/12
to puppet...@googlegroups.com
^([^\.]*)(\..*)$

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
Reply all
Reply to author
Forward
0 new messages