Bug 1416170
| Summary: | [RFE] Modify kickstart templates to update the /etc/hosts and /etc/resolv.conf | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Peter Tselios <tselios.petros> |
| Component: | Provisioning Templates | Assignee: | Marek Hulan <mhulan> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2.6 | CC: | jcallaha, lzap, mhulan, tselios.petros |
| Target Milestone: | Unspecified | Keywords: | FutureFeature |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-09-04 19:15:13 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Peter Tselios
2017-01-24 18:26:21 UTC
Created redmine issue http://projects.theforeman.org/issues/18509 from this bug I think updating /etc/hosts makes sense. I'm not sure about the resolv.conf. This is usually updated by network manager, so as long as the ifcfg-eth0 (or whatever interface file) has DNS1 set, it should be reflected when "service network restart" is called. This seems to work fine for me on el7. If that does not work in your case, could you please upload your ifcfg file or the finish template that is used to configure the host? Feel free to clean any sensitive information such as IP addresses. Upstream bug assigned to mhulan Upstream bug assigned to mhulan When I use static IPs, /etc/resolve.conf is updated correctly. So, let's focus on the /etc/hosts update. Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you. It is assumed that hosts managed by Foreman have proper DNS, therefore no changes of `/etc/hosts` is necessary. Some users tend to manage hosts file entries instead of DNS, then configuration management should be used. However, feel free to send a patch to Foreman templates to do this during provisioning, but only as opt-in via parameter. By default, we do not want to change what OS installers set. File `/etc/resolv.conf` is managed by NetworkManager from CentOS 6, there is no need of changing it directly. Nameservers must be set in ifcfg setting (DNS1, DNS2) or interactively via NetworkManager CLI, TUI or applet. |