Fix disabling of /etc/hosts update in case of FQDN
Use proper hash key to determine whether we should disable addition of racord into /etc/hosts file. Change-Id: Id908889718c424ebc65be541ffe9d27f6c4cb8c6
This commit is contained in:
parent
1feaa89998
commit
2cddead87e
|
@ -6,7 +6,7 @@ $plugin_name = 'external_loadbalancer'
|
|||
$external_lb = hiera("$plugin_name")
|
||||
$ssl_hash = hiera_hash('use_ssl', {})
|
||||
|
||||
if empty($ssl_hash) and !is_ip_address($external_lb['external_public_vip']){
|
||||
if empty($ssl_hash) and !is_ip_address($external_lb['public_ip']){
|
||||
notice('Creating hiera override to disable addition of $public_vip to /etc/hosts')
|
||||
file {'/etc/hiera/override/configuration/cluster.yaml':
|
||||
ensure => present,
|
||||
|
|
|
@ -6,7 +6,7 @@ $plugin_name = 'external_loadbalancer'
|
|||
$external_lb = hiera("$plugin_name")
|
||||
$ssl_hash = hiera_hash('use_ssl', {})
|
||||
|
||||
if empty($ssl_hash) and !is_ip_address($external_lb['external_public_vip']){
|
||||
if empty($ssl_hash) and !is_ip_address($external_lb['public_ip']){
|
||||
notice('Removing hiera override which disables adding of $public_vip to /etc/hosts')
|
||||
file {'/etc/hiera/override/configuration/cluster.yaml':
|
||||
ensure => present,
|
||||
|
|
Loading…
Reference in New Issue