Created
October 18, 2013 20:53
-
-
Save tylerwalts/7048136 to your computer and use it in GitHub Desktop.
A puppet module which wraps around a graphite module and provides some dependencies for it. Graphite needs whisper, graphite-web & carbon repos, and these are not in default repository for at least CentOS 6.4. Intended to be used with: https://github.com/electrical/puppet-graphite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class graphite_server { | |
exec { 'get carbon': | |
path => [ "/bin", "/usr/bin", "/usr/sbin" ], | |
command => "rpm -Uvh http://launchpadlibrarian.net/61905213/carbon-0.9.7-1.noarch.rpm", | |
creates => "/etc/carbon/carbon.conf", | |
unless => "yum list | grep carbon | grep installed", | |
} | |
exec { 'get whisper': | |
path => [ "/bin", "/usr/bin", "/usr/sbin" ], | |
command => "rpm -Uvh http://launchpadlibrarian.net/61905162/whisper-0.9.7-1.noarch.rpm", | |
creates => "/usr/local/bin/whisper-create.py", | |
unless => "yum list | grep whisper | grep installed", | |
} | |
exec { 'get graphite web': | |
path => [ "/bin", "/usr/bin", "/usr/sbin" ], | |
command => "rpm -Uvh http://launchpadlibrarian.net/62379647/graphite-web-0.9.7c-1.noarch.rpm", | |
creates => "/etc/graphite-web/dashboard.conf", | |
unless => "yum list | grep graphite | grep web | grep installed", | |
} | |
class {'graphite': | |
status => 'enabled', | |
require => [ | |
Exec['get carbon'], | |
Exec['get whisper'], | |
Exec['get graphite web'] | |
], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment