Forráskód Böngészése

AMBARI-1439. rrd file location should be read from global config. (swagle)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1457150 13f79535-47bb-0310-9956-ffa450edef68
Siddharth Wagle 12 éve
szülő
commit
d22a969859

+ 2 - 0
CHANGES.txt

@@ -493,6 +493,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1439. rrd file location should be read from global config. (swagle)
+
  AMBARI-1648. Hue configuration - DB properties cannot be empty. (swagle)
 
  AMBARI-1641. Some map and reduce task metrics are missing for the

+ 10 - 2
ambari-agent/src/main/puppet/modules/hdp-ganglia/manifests/server.pp

@@ -126,8 +126,6 @@ class hdp-ganglia::server::files(
   $ensure = present 
 )
 {
-
-
   $rrd_py_path = $hdp::params::rrd_py_path [$hdp::params::hdp_os_type]
   hdp::directory_recursive_create{$rrd_py_path:
     ensure => "directory", 
@@ -142,6 +140,16 @@ class hdp-ganglia::server::files(
     mode   => '0755',
     require => Hdp::Directory_recursive_create[$rrd_py_path]
   }
+
+  $rrd_files_dir = $hdp-ganglia::params::rrdcached_base_dir
+  $rrd_file_owner = $hdp-ganglia::params::gmetad_user
+  hdp::directory_recursive_create{ $rrd_files_dir :
+    ensure => "directory",
+    owner => $rrd_file_owner,
+    group => $rrd_file_owner,
+    mode => 755
+  }
+
 }