Permalink
Browse files

Add ganglia

  • Loading branch information...
1 parent 9410dd2 commit bb30b470cbbe037c84299fa97611da641a705fdf @mikecanz committed Mar 15, 2013
@@ -0,0 +1,13 @@
+ #
+ # THIS FILE IS MAINTAINED BY PUPPET
+ #
+ # Ganglia monitoring system php web frontend
+ #
+
+ Alias /ganglia /usr/share/ganglia
+
+ <Location /ganglia>
+ Order deny,allow
+ Deny from all
+ Allow from all
+ </Location>
@@ -0,0 +1,22 @@
+class ganglia::gmetad {
+
+ package { [
+ "ganglia",
+ "ganglia-gmetad",
+ ]:
+ ensure => installed,
+ }
+
+ service { "gmetad":
+ enable => true,
+ ensure => running,
+ }
+
+ file { [
+ "/var/lib/ganglia/rrds",
+ ]:
+ ensure => directory,
+ owner => nobody,
+ group => nobody,
+ }
+}
@@ -0,0 +1,14 @@
+class ganglia::web {
+
+ include ganglia::gmetad
+
+ package { [
+ "ganglia-web",
+ ]:
+ ensure => installed,
+ }
+
+ file { "/etc/httpd/conf.d/ganglia.conf":
+ source => "puppet:///modules/ganglia/etc/httpd/conf.d/ganglia.conf",
+ }
+}

0 comments on commit bb30b47

Please sign in to comment.