Fix small issue with elasticsearch vip in oss

This issue related to cases when elasticsearch installed on separate
nodes (log nodes in customer installations). This small fix
get address of elasticsearch for pillar of elasticsearch, not from _param

Change-Id: I99ce5e15c320bd8d8b333de745605bd5bc0e4d32
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index e357f50..584bbea 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -874,9 +874,17 @@
   salt.enforceState(master, 'I@rundeck:client', 'rundeck.client', true)
 
   // Elasticsearch
+  pillar = salt.getPillar(master, 'I@elasticsearch:client', 'elasticsearch:client:server:host')
+  def elasticsearch_vip
+  if(!pillar['return'].isEmpty()) {
+    elasticsearch_vip = pillar['return'][0].values()[0]
+  } else {
+    common.errorMsg('[ERROR] Elasticsearch VIP address could not be retrieved')
+  }
+
   timeout(10) {
     common.infoMsg('Waiting for Elasticsearch to come up..')
-    salt.cmdRun(master, 'I@elasticsearch:client', "while true; do curl -sf ${oss_vip}:9200 >/dev/null && break; done")
+    salt.cmdRun(master, 'I@elasticsearch:client', "while true; do curl -sf ${elasticsearch_vip}:9200 >/dev/null && break; done")
   }
   salt.enforceState(master, 'I@elasticsearch:client', 'elasticsearch.client', true)
 }