[Freeipa-users] What's the proper format for an automember serverhostname rule?

greg at greg-gilbert.com greg at greg-gilbert.com
Wed Apr 19 18:57:42 UTC 2017


When the instances register themselves with FreeIPA, their hostnames get
changed to match their IP; that's a FreeIPA rule, I believe. So in this
case, the hostname is 10.100.*. 

ubuntu at 10:~$ hostname
10.100.15.130 

On 2017-04-19 14:53, Jason B. Nance wrote:

> Hi Greg,
> 
>> I'm trying to set up a rule based on server hostname. So for example, 10.100.* would be put into the 'developers' hostgroup. I can't figure out the proper format of the inclusive regex. I've tried:
> 
> I believe that your regex needs to match the host name, not the IP address.  Unless your host name is 10.100.<something> I don't think that will match.  The regex for "anything" is ".*".  I think that the pcre syntax is what is used. 
> Regards, 
> 
> j
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20170419/b3a50ee2/attachment.htm>


More information about the Freeipa-users mailing list