Better localhost checking for SSL configuration
The previous patch: https://review.openstack.org/#/c/91144 handles SSL redirection to a hostname but if the $::fqdn facter variable is "localhost.localdomain" (which is a defualt in some systems) the manifest will fail to notice this and will add that hostname to the ServerName apache directive, added a regexp to avoid any "localhost*" setting. Change-Id: Ia306d12d73aa2a492dc12e16deed65fd06225538
This commit is contained in:
parent
241f682d81
commit
6a60ef7f28
|
@ -32,7 +32,7 @@ file_line{'nohttp_ip':
|
|||
$https_port = %(CONFIG_HORIZON_PORT)s
|
||||
|
||||
|
||||
if ($::fqdn != "" and $::fqdn != "localhost") {
|
||||
if ($::fqdn != "" and $::fqdn !~ /localhost/) {
|
||||
$vhostname = $::fqdn
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue