Mark Bergsma has uploaded a new change for review. https://gerrit.wikimedia.org/r/60855
Change subject: Strip the site suffix from the title to retrieve the cluster name ...................................................................... Strip the site suffix from the title to retrieve the cluster name Change-Id: Ic62c1dadd66fab4c7bdd3645118246ccfd217ddd --- 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/55/60855/1 diff --git a/modules/ganglia_new/manifests/monitor/aggregator/instance.pp b/modules/ganglia_new/manifests/monitor/aggregator/instance.pp index 1e9b8c3..73d43b4 100644 --- a/modules/ganglia_new/manifests/monitor/aggregator/instance.pp +++ b/modules/ganglia_new/manifests/monitor/aggregator/instance.pp @@ -5,7 +5,7 @@ $aggregator = true - $cluster = $title + $cluster = regsubst($title, '^(.*)_[^_]+$', '\1') if has_key($ganglia_new::configuration::clusters[$cluster], 'sites') { $sites = $ganglia_new::configuration::clusters[$cluster]['sites'] } else { -- To view, visit https://gerrit.wikimedia.org/r/60855 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ic62c1dadd66fab4c7bdd3645118246ccfd217ddd 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