I want to set up a new Forman 1.24. Therefore, I added some hosts to the Forman and assign to the appropriate host group I created. The host group is assigned to an organization and location. Now my question is, is it possible that the host are automatically in the same organization and location as the host group?
If I want to assign the organization to the host, there is always the error message: “Cannot update Organization to … because of mismatch in settings”. Only if I check the “Fix Organization on Mismatch” box, it is possible.
Foreman and Proxy versions:
The way you describe it is not possible, because a hostgroup can be assigned to any number of organizations and locations.
If you create the host manually via the UI, the hosts will be added to your current organization/location context (the ones selected via the drop downs in the top bar). If you are importing existing systems via facts, you can set a default organization/location via the settings AFAIK. There is afaik also a way to set the organization and location by sending a certain fact. I think they are foreman_location and foreman_organization, but I could not find anything on that and am not entirely sure here.