]> gitweb.fluxo.info Git - puppet-tor.git/commitdiff
use the deploy mechanism of the munin module
authormh <mh@immerda.ch>
Wed, 2 Jan 2013 12:59:50 +0000 (13:59 +0100)
committermh <mh@immerda.ch>
Wed, 2 Jan 2013 12:59:50 +0000 (13:59 +0100)
manifests/munin.pp

index ecc3130be640a6353cdaa8596ff44ab8a77e6a90..e1b369ae82e2ac72155eca92bf6d7402a6f8f507 100644 (file)
@@ -1,30 +1,14 @@
 # munin plugins for puppet
 class tor::munin {
-
-  file {
-    '/usr/local/share/munin-plugins/tor_connections':
-      source => 'puppet:///modules/tor/munin/tor_connections',
-      mode   => '0755',
-      owner  => root,
-      group  => root;
-
-    '/usr/local/share/munin-plugins/tor_routers':
-      source => 'puppet:///modules/tor/munin/tor_routers',
-      mode   => '0755',
-      owner  => root,
-      group  => root;
-
-    '/usr/local/share/munin-plugins/tor_traffic':
-      source => 'puppet:///modules/tor/munin/tor_traffic',
-      mode   => '0755',
-      owner  => root,
-      group  => root;
+  Munin::Plugin::Deploy {
+    config  => "user debian-tor\n env.cookiefile /var/run/tor/control.authcookie"
   }
-
-  munin::plugin {
-    [ 'tor_connections', 'tor_routers', 'tor_traffic' ]:
-      ensure         => present,
-      config         => "user debian-tor\n env.cookiefile /var/run/tor/control.authcookie",
-      script_path_in => '/usr/local/share/munin-plugins';
+  munin::plugin::deploy {
+    'tor_connections':
+      source => 'tor/munin/tor_connections';
+    'tor_routers':
+      source => 'tor/munin/tor_routers';
+    'tor_traffic':
+      source => 'tor/munin/tor_traffic';
   }
 }