Skip to content

Commit

Permalink
Add example puppet manifest, link docs in README
Browse files Browse the repository at this point in the history
Change-Id: I5b2ac5b3ead6f5cd703f64076f03d823bfff20a5
  • Loading branch information
Dave Barr committed Jan 4, 2011
1 parent 3701ea9 commit db95f5f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -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
34 changes: 34 additions & 0 deletions stumbleupon/tcollector.pp
Original file line number Diff line number Diff line change
@@ -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.