Yuvipanda has uploaded a new change for review.

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

Change subject: grafana: Fix paths for grafana datasource plugin
......................................................................

grafana: Fix paths for grafana datasource plugin

Change-Id: I092512305772a0ac3b3eb1903dd304776c80d47d
---
M modules/role/manifests/grafana/labs.pp
1 file changed, 7 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/87/313587/1

diff --git a/modules/role/manifests/grafana/labs.pp 
b/modules/role/manifests/grafana/labs.pp
index a2ad0ae..4c67030 100644
--- a/modules/role/manifests/grafana/labs.pp
+++ b/modules/role/manifests/grafana/labs.pp
@@ -22,10 +22,17 @@
     }
 
     # https://phabricator.wikimedia.org/T141636
+    # We clone this, but need to symlink into the 'dist' directory for plugin 
to actually work
     git::clone { 'operations/software/grafana/simple-json-datasource':
         ensure    => present,
         branch    => '3.0',
         directory => 
'/usr/share/grafana/public/app/plugins/datasource/simple-json-datasource',
         require   => Package['grafana'],
     }
+
+    file { 
'/usr/share/grafana/public/app/plugins/datasource/datasource-plugin-genericdatasource':
+        ensure  => link,
+        target  => 
'/usr/share/grafana/public/app/plugins/datasource/simple-json-datasource/dist',
+        require => 
Git::Clone['operations/software/grafana/simple-json-datasource'],
+    }
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I092512305772a0ac3b3eb1903dd304776c80d47d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to