diff --git a/deployment/puppet/nailgun/examples/nailgun-only.pp b/deployment/puppet/nailgun/examples/nailgun-only.pp index 79eb427569..cb8bf97845 100644 --- a/deployment/puppet/nailgun/examples/nailgun-only.pp +++ b/deployment/puppet/nailgun/examples/nailgun-only.pp @@ -84,9 +84,15 @@ $mco_user = $::fuel_settings['mcollective']['user'] $mco_password = $::fuel_settings['mcollective']['password'] $mco_connector = "rabbitmq" -$ntp_server_list = delete(delete_undef_values([$::fuel_settings['NTP1'], - $::fuel_settings['NTP2'], $::fuel_settings['NTP3']]), '') -$ntp_servers = join($ntp_server_list, ', ') +if empty($::fuel_settings['NTP1']) and + empty($::fuel_settings['NTP2']) and + empty($::fuel_Settings['NTP3']) { + $ntp_servers = $::fuel_settings['ADMIN_NETWORK']['ipaddress'] +} else { + $ntp_server_list = delete(delete_undef_values([$::fuel_settings['NTP1'], + $::fuel_settings['NTP2'], $::fuel_settings['NTP3']]), '') + $ntp_servers = join($ntp_server_list, ', ') +} $dns_upstream = regsubst($::fuel_settings['DNS_UPSTREAM'], ' ', ', ', 'G')