incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vik...@apache.org
Subject svn commit: r1347365 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/php/puppet/PuppetInvoker.php
Date Thu, 07 Jun 2012 03:44:37 GMT
Author: vikram
Date: Thu Jun  7 03:44:36 2012
New Revision: 1347365

URL: http://svn.apache.org/viewvc?rev=1347365&view=rev
Log:
AMBARI-515. Modules tar size increases. (Contributed by Jitendra)

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/php/puppet/PuppetInvoker.php

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1347365&r1=1347364&r2=1347365&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu Jun  7 03:44:36 2012
@@ -6,6 +6,8 @@ characters wide.
 
 Release 0.1.x - unreleased
 
+  AMBARI-515. Modules tar size increases. (Jitendra via Vikram)
+
   AMBARI-514. Fix parsing error in puppet manifests. (Mahadev via Vikram)
 
   AMBARI-513. Download mysql rpm for sqoop (Ramya via Vikram)

Modified: incubator/ambari/branches/ambari-186/hmc/php/puppet/PuppetInvoker.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/php/puppet/PuppetInvoker.php?rev=1347365&r1=1347364&r2=1347365&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/php/puppet/PuppetInvoker.php (original)
+++ incubator/ambari/branches/ambari-186/hmc/php/puppet/PuppetInvoker.php Thu Jun  7 03:44:36
2012
@@ -242,13 +242,13 @@
           $configInfo, $hostRolesStates, $hostAttributes, $agentModulesDir);
 
       //Tar the modules and catalog
-      $tarCmd = "tar zcf ". $GLOBALS["manifestloaderDir"] . "/modules.tgz" . " " .  $GLOBALS["puppetMasterModulesDirectory"];
-      $this->logger->log_info($tarCmd);
-      exec($tarCmd);
       $tarLocation = $GLOBALS["puppetMasterModulesDirectory"] . "/catalog/files" ;
       $removeOldTar = "rm -f " . $tarLocation . "/modules.tgz";
       $this->logger->log_info($removeOldTar);
       exec($removeOldTar);
+      $tarCmd = "tar zcf ". $GLOBALS["manifestloaderDir"] . "/modules.tgz" . " " .  $GLOBALS["puppetMasterModulesDirectory"];
+      $this->logger->log_info($tarCmd);
+      exec($tarCmd);
       $placeNewTarCmd = "mv " . $GLOBALS["manifestloaderDir"] . "/modules.tgz" . " " . $tarLocation;
       $this->logger->log_info($placeNewTarCmd);
       exec($placeNewTarCmd);



Mime
View raw message