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:
Aleksandr Didenko 2016-03-11 17:51:09 +01:00
parent 1feaa89998
commit 2cddead87e
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,