incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1337227 - in /incubator/ambari/branches/ambari-186: ./ hmc/puppet/modules/hdp-ganglia/manifests/
Date Fri, 11 May 2012 15:58:37 GMT
Author: omalley
Date: Fri May 11 15:58:36 2012
New Revision: 1337227

URL: http://svn.apache.org/viewvc?rev=1337227&view=rev
Log:
AMBARI-213. Fix directory permissions so that Ganglia graphs render.
(ramya via omalley)

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/init.pp
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor.pp
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor_and_server.pp
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/server.pp

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1337227&r1=1337226&r2=1337227&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Fri May 11 15:58:36 2012
@@ -2,6 +2,9 @@ Ambari Change log
 
 Release 0.x.x - unreleased
 
+  AMBARI-213. Fix directory permissions so that Ganglia graphs render.
+  (ramya via omalley)
+
   AMBARI-210. Remove link for wiping clusters from the hope page. (Vikram Dixit
   via omalley)
 

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/init.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/init.pp?rev=1337227&r1=1337226&r2=1337227&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/init.pp
(original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/init.pp
Fri May 11 15:58:36 2012
@@ -38,6 +38,20 @@ class hdp-ganglia::service::gmond(
   }
 }
 
+class hdp-ganglia::service::change_permission(
+  $ensure
+  )
+{
+  if ($ensure == 'running' or $ensure == 'installed_and_configured') {
+    file { '/var/lib/ganglia/dwoo' :
+      ensure  => directory,
+      recurse => true,
+      mode    => '0777'
+    }
+  }
+}
+
+
 class hdp-ganglia::service::gmetad(
   $ensure
 )

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor.pp?rev=1337227&r1=1337226&r2=1337227&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor.pp
(original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor.pp
Fri May 11 15:58:36 2012
@@ -35,6 +35,9 @@ class hdp-ganglia::monitor(
         ensure => $service_state,
         require  => Class['hdp-ganglia::monitor::config-gen']
       }
+      class { 'hdp-ganglia::service::change_permission':
+        ensure => $service_state
+      }
     }
   } else {
     hdp_fail("TODO not implemented yet: service_state = ${service_state}")

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor_and_server.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor_and_server.pp?rev=1337227&r1=1337226&r2=1337227&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor_and_server.pp
(original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/monitor_and_server.pp
Fri May 11 15:58:36 2012
@@ -22,6 +22,10 @@ class hdp-ganglia::monitor_and_server(
     ensure => $service_state
   }
 
+  class { 'hdp-ganglia::service::change_permission':
+    ensure => $service_state
+  }
+
   anchor{'hdp-ganglia::monitor_and_server::begin':} -> Class['hdp-ganglia'] -> Class['hdp-ganglia::server']
->
-    Class['hdp-ganglia::monitor'] -> Class['hdp-ganglia::service::gmond'] -> anchor{'hdp-ganglia::monitor_and_server::end':}
+    Class['hdp-ganglia::monitor'] -> Class['hdp-ganglia::service::gmond'] -> Class['hdp-ganglia::service::change_permission']
-> anchor{'hdp-ganglia::monitor_and_server::end':}
 }

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/server.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/server.pp?rev=1337227&r1=1337226&r2=1337227&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/server.pp
(original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests/server.pp
Fri May 11 15:58:36 2012
@@ -65,8 +65,9 @@ class hdp-ganglia::server::services(
   
     if ($monitor_and_server_single_node == false) {
       class { 'hdp-ganglia::service::gmond': ensure => $service_state}
+      class { 'hdp-ganglia::service::change_permission': ensure => $service_state }
       
-      Anchor['hdp-ganglia::server::services::begin'] -> Class['hdp-ganglia::service::gmond']
-> Class['hdp-ganglia::service::gmetad'] 
+      Anchor['hdp-ganglia::server::services::begin'] -> Class['hdp-ganglia::service::gmond']
-> Class['hdp-ganglia::service::change_permission'] -> Class['hdp-ganglia::service::gmetad']

     }
   }
 }



Mime
View raw message