URL:
https://github.com/freeipa/freeipa/pull/3434
Author: mulatinho
Title: #3434: Issue #8018 - Fixes ipa-server-install to work with /etc/hosts like in
fc30
Action: opened
PR body:
"""
On Fedora 30, and also on another machines that put aliases
first than FQDN address on /etc/hosts, ipa-server-install fails.
#### Steps to Reproduce
1. with a machine without freeipa-server,
2. using the same pattern of fedora 30 in /etc/hosts [1]
3. run **ipa-server-install --setup-dns** make happen an installation bug even if seems
OK;
[1] /etc/hosts
```
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
10.0.0.1 serveripa serveripa.localdomain
```
Instead of checking the first index of ex_name, this code checks if
FQDN is on tuple or not. If not raises error, if it is continues the
installation.
Fixes:
https://pagure.io/freeipa/issues/8018
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3434/head:pr3434
git checkout pr3434