Actions
Feature #165
closedSubdomain should be shown for hostname.
Description
By default, foreman shows the short domain name for hosts.
However, we have multiple sites, lets say site1.example.com and site2.example.com.
Sometimes we have servers with names mysql1.site1 and mysql1.site2
This is hard to distinguish in foreman as it shows "mysql1" for both. (We have to click it)
I changed the "shortname" function in ./app/models/host.rb like so:
#domain.nil? ? name : name.chomp("." + domain.name) domain.nil? ? name : name.chomp(".example.com")
Now the hosts show up as mysql1.site1 and mysql1.site2, which makes much better readability.
Perhaps there could be a configurable setting for this?
One could specify how much of a domain name to show/hide?
Files
Actions