Hello, I want to use Foreman and/or AWS to provision hosts that will be registered to my FreeIPA. I have created all the locations that I will use and I have one FreeIPA replica on each location. From the documentation seems that I need to use the ipa-client-install and then use the ipa host-mod to modify the host's location, meaning that I need to modify the permissions the Foreman script created the my user. Is there any other way to automatically add a host in a location?
Peter Tselios via FreeIPA-users wrote:
Hello, I want to use Foreman and/or AWS to provision hosts that will be registered to my FreeIPA. I have created all the locations that I will use and I have one FreeIPA replica on each location. From the documentation seems that I need to use the ipa-client-install and then use the ipa host-mod to modify the host's location, meaning that I need to modify the permissions the Foreman script created the my user. Is there any other way to automatically add a host in a location?
I think you may be misunderstanding location. The location value in the host entry has nothing to do with https://www.freeipa.org/page/Howto/IPA_locations
You don't need to configure clients by location.
rob
Why? It's pretty much clear. You have multiple locations, multiple IPA servers and clients register to the appropriate IPA based on the DNS resolvers. Even in the link you attached, the client is assigned to a location (Prague/Paris). When you do in a cloud environment, obviously you want to automate this process. You don't want to manually configure anything in the instance. Of course there are ways to mitigate this (if there is no such feature) via a configuration management tool or via cloud-init, but it defeats the purpose.
freeipa-users@lists.fedorahosted.org