Mark Bergsma has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60854


Change subject: Define $cluster variable before reference
......................................................................

Define $cluster variable before reference

Change-Id: I0960e2ac1ca87097b94d52f9586d7836d51156b5
---
M modules/ganglia_new/manifests/monitor/aggregator/instance.pp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/54/60854/1

diff --git a/modules/ganglia_new/manifests/monitor/aggregator/instance.pp 
b/modules/ganglia_new/manifests/monitor/aggregator/instance.pp
index b0cf918..1e9b8c3 100644
--- a/modules/ganglia_new/manifests/monitor/aggregator/instance.pp
+++ b/modules/ganglia_new/manifests/monitor/aggregator/instance.pp
@@ -5,12 +5,12 @@
 
        $aggregator = true
 
+       $cluster = $title
        if has_key($ganglia_new::configuration::clusters[$cluster], 'sites') {
                $sites = 
$ganglia_new::configuration::clusters[$cluster]['sites']
        } else {
                $sites = $ganglia_new::configuration::default_sites
        }
-       $cluster = $title
        $id = $ganglia_new::configuration::clusters[$cluster]['id']
        $desc = $ganglia_new::configuration::clusters[$cluster]['name']
        $portnr = $ganglia_new::configuration::base_port + 
$ganglia_new::configuration::site_port_prefix[$site] + $id

-- 
To view, visit https://gerrit.wikimedia.org/r/60854
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0960e2ac1ca87097b94d52f9586d7836d51156b5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Mark Bergsma <m...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to