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

Rob Crittenden rcritten at redhat.com
Wed Apr 19 20:27:54 UTC 2017


greg at greg-gilbert.com wrote:
> 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

There is something very wrong. ipa-client should be setting a FQDN, not
an IP address. /var/log/ipaclient-install.log may hold some clues.

rob

> 
> 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
>>  
> 
> 
> 
> 




More information about the Freeipa-users mailing list