Hi there,
I'm trying to set up an all-in-one infrastructure system (using Vagrant), which included FreeIPA, libvirt and The Foreman, and some other software. The Idea is that I (locally) bootstrap such a system that helps users to create their definite infrastructure management setup in the end.
Naturally, this entails that FreeIPA is installed on localhost. This, however, doesn't seem to work: The `ipa-server-install` script aborts and issues the following error message:
The IPA Server hostname must not resolve to localhost (127.0.0.1). A routable IP address must be used. [...]
Is there any way to make a local install happen? Or what do I have to do instead?
Any thoughts and ideas highly appreciated, Peter
Peter Bittner via FreeIPA-users wrote:
Hi there,
I'm trying to set up an all-in-one infrastructure system (using Vagrant), which included FreeIPA, libvirt and The Foreman, and some other software. The Idea is that I (locally) bootstrap such a system that helps users to create their definite infrastructure management setup in the end.
Naturally, this entails that FreeIPA is installed on localhost. This, however, doesn't seem to work: The `ipa-server-install` script aborts and issues the following error message:
The IPA Server hostname must not resolve to localhost (127.0.0.1). A routable IP address must be used. [...]Is there any way to make a local install happen? Or what do I have to do instead?
Any thoughts and ideas highly appreciated,
I took a very quick peek and the code and I don't see an option to avoid this. You'll have to hack the installer to around this. I'd modify verify_fqdn() in ipaserver/install/installutils.py to just return and not run any of the checks. Whether this is sufficient for the rest to succeed I'm not sure. You could do this perhaps using sed for example to automate it.
IPA isn't all that interesting if it only listens on localhost in most cases. I see what you're trying to do but it isn't the general case.
rob
On ti, 27 maalis 2018, Rob Crittenden via FreeIPA-users wrote:
Peter Bittner via FreeIPA-users wrote:
Hi there,
I'm trying to set up an all-in-one infrastructure system (using Vagrant), which included FreeIPA, libvirt and The Foreman, and some other software. The Idea is that I (locally) bootstrap such a system that helps users to create their definite infrastructure management setup in the end.
Naturally, this entails that FreeIPA is installed on localhost. This, however, doesn't seem to work: The `ipa-server-install` script aborts and issues the following error message:
The IPA Server hostname must not resolve to localhost (127.0.0.1). A routable IP address must be used. [...]Is there any way to make a local install happen? Or what do I have to do instead?
Any thoughts and ideas highly appreciated,
I took a very quick peek and the code and I don't see an option to avoid this. You'll have to hack the installer to around this. I'd modify verify_fqdn() in ipaserver/install/installutils.py to just return and not run any of the checks. Whether this is sufficient for the rest to succeed I'm not sure. You could do this perhaps using sed for example to automate it.
IPA isn't all that interesting if it only listens on localhost in most cases. I see what you're trying to do but it isn't the general case.
What about using 127.0.0.254 or a similar addres? The check is explicit in being 127.0.0.1, so any other localhost network's address would pass through.
That's a good point, thank you!
I managed to fix the issue by using the machine's second IP address, other than 127.0.0.1.
Later I figured, in one of the Foreman projects they do it the same way. https://github.com/theforeman/forklift/blob/master/roles/freeipa_server/task...
Thanks again, Peter
freeipa-users@lists.fedorahosted.org