Permalink
Browse files

Add example puppet manifest, link docs in README

Change-Id: I5b2ac5b3ead6f5cd703f64076f03d823bfff20a5
  • Loading branch information...
1 parent 3701ea9 commit db95f5fce3062f90b447c25df1b283799883ed2a @davebarr davebarr committed Jan 4, 2011
Showing with 38 additions and 0 deletions.
  1. +4 −0 README
  2. +34 −0 stumbleupon/tcollector.pp
View
4 README
@@ -1,3 +1,7 @@
tcollector is a framework to collect data points and store them in OpenTSDB.
It allows you to write simple collectors that it'll run and monitor. It also
handles the communication with the TSDs.
+
+For more info, see
+
+http://www.opentsdb.net/tcollector.html
View
@@ -0,0 +1,34 @@
+# Example Puppet manifest for updating/starting tcollector
+# under puppet
+
+class tcollector {
+ package { python:
+ ensure => installed,
+ }
+
+ service { tcollector:
+ ensure => running,
+ require => [Package["python"], File["/usr/local/tcollector"]],
+ start => "/usr/local/tcollector/startstop start",
+ stop => "/usr/local/tcollector/startstop stop",
+ restart => "/usr/local/tcollector/startstop restart",
+ status => "/usr/local/tcollector/startstop status",
+ subscribe => File["/usr/local/tcollector"],
+ }
+
+ file { ["/usr/local"]:
+ owner => root, group => root, mode => 755,
+ ensure => directory,
+ }
+
+ file { "/usr/local/tcollector":
+ source => "puppet:///files/tcollector",
+ owner => root, group => root,
+ ensure => directory,
+ recurse => true,
+ ignore => '*.pyc',
+ purge => true,
+ force => true,
+ require => File["/usr/local"],
+ }
+}

0 comments on commit db95f5f

Please sign in to comment.