Sorry for multiple posts in the past few days, i’m learning this great tool!
We are running Foreman 16 on CentOS 7 - when i’m creating a new host it always defaults to lower case name even when I use an upper case name on the create host page, is that by design? is there a way to bypass this?
Hello,
Foreman does indeed lowercase all hostnames currently. If I am not mistaken, this is required for puppet to function correctly (or at least was in the past).
Note however that DNS specification and other standards require host names to be case-insensitive, see for example RFC4343.
You’re right that technically they are case-insensitive but we’ve noticed that many tools or scripts don’t properly handle case. It could well be that we always downcase it.
In the katello installer we actually refuse to install if hostname -f contains any uppercase letters.
This was never about puppet, but about the fact that foreman manage dns, and as such, it complies with DNS RFC’s, further, we don’t support duplicate host names (from the same reason) and as such we didn’t want the ability for someone to create duplicate names with case sensitive name… consider it a way to enforce best practices…