From fec0cefb9ffaee2b3638b489ada8deda945b4faa Mon Sep 17 00:00:00 2001 From: Alex Ruiz Estradera Date: Wed, 19 Oct 2016 18:03:48 +0200 Subject: [PATCH] Ensure correct ordering on MEM insights The .conf file must be created BEFORE running the service for analytics because otherwise it doesnt know where to find zookeeper nodes. Change-Id: I8d8791ea0714ebd5ca9fe796f634a0fba9b64fa0 --- manifests/analytics.pp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/manifests/analytics.pp b/manifests/analytics.pp index c72af67..948bb7c 100644 --- a/manifests/analytics.pp +++ b/manifests/analytics.pp @@ -95,13 +95,14 @@ class midonet::analytics ( } } } - class { 'midonet::analytics::services': - require => [Class['::logstash','::elasticsearch','::curator'], - Elasticsearch::Instance['es-01']] - } -> class { 'midonet::analytics::quickstart': zookeeper_hosts => $zookeeper_hosts, + } -> + class { 'midonet::analytics::services': + require => [Class['::logstash','::elasticsearch','::curator'], + Elasticsearch::Instance['es-01'],File['set_config']] } + } else { notice('Skipping installation of midonet analytics services')