You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by vg...@apache.org on 2012/05/15 04:17:27 UTC

svn commit: r1338505 - in /incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-ganglia/manifests: init.pp monitor.pp

Author: vgogate
Date: Tue May 15 02:17:26 2012
New Revision: 1338505

URL: http://svn.apache.org/viewvc?rev=1338505&view=rev
Log:
fix for dwoo file permission

Modified:
    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

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=1338505&r1=1338504&r2=1338505&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 Tue May 15 02:17:26 2012
@@ -43,11 +43,10 @@ class hdp-ganglia::service::change_permi
   )
 {
   if ($ensure == 'running' or $ensure == 'installed_and_configured') {
-    file { '/var/lib/ganglia/dwoo' :
-      ensure  => directory,
-      recurse => true,
-      mode    => '0777'
-    }
+    hdp::directory_recursive_create { '/var/lib/ganglia/dwoo' :
+      ensure => directory,
+      mode => '0777'
+      }
   }
 }
 

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=1338505&r1=1338504&r2=1338505&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 Tue May 15 02:17:26 2012
@@ -35,9 +35,6 @@ 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}")