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

svn commit: r1339762 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/puppet/modules/hdp-mysql/manifests/server.pp hmc/puppet/modules/hdp/manifests/params.pp

Author: ramya
Date: Thu May 17 18:09:52 2012
New Revision: 1339762

URL: http://svn.apache.org/viewvc?rev=1339762&view=rev
Log:
AMBARI-253. Support uninstall state in mysql modules

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-mysql/manifests/server.pp
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp/manifests/params.pp

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1339762&r1=1339761&r2=1339762&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu May 17 18:09:52 2012
@@ -2,6 +2,8 @@ Ambari Change log
 
 Release 0.x.x - unreleased
 
+  AMBARI-253. Support uninstall state in mysql modules (ramya)
+
   AMBARI-258. Start/Stop service show services that are not dependent on the 
   service being worked on (Vinod via ramya)
 

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-mysql/manifests/server.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-mysql/manifests/server.pp?rev=1339762&r1=1339761&r2=1339762&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-mysql/manifests/server.pp (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-mysql/manifests/server.pp Thu May 17 18:09:52 2012
@@ -4,7 +4,12 @@ class hdp-mysql::server(
 ) inherits  hdp-mysql::params
 { 
   if ($service_state == 'no_op') {
-  } elsif ($service_state in ['running','stopped','installed_and_configured']) {
+  } elsif ($service_state in ['uninstalled']) {  
+      hdp::package { 'mysql' :
+        ensure => 'uninstalled',
+        size   => 32
+      }
+   } elsif ($service_state in ['running','stopped','installed_and_configured']) {
    
     $db_user = $hdp-mysql::params::db_user
     $db_pw = $hdp-mysql::params::db_pw

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp/manifests/params.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp/manifests/params.pp?rev=1339762&r1=1339761&r2=1339762&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp/manifests/params.pp (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp/manifests/params.pp Thu May 17 18:09:52 2012
@@ -269,7 +269,7 @@ class hdp::params()
     $zk_smoke_test_script = "/usr/lib/zookeeper/bin/zkCli.sh"
     $update_zk_shell_files = false
 
-    $hive_mysql_host = hdp_default("hive_mysql_host")
+    $hive_mysql_host = hdp_default("hive_mysql_host","localhost")
     $hive_user = hdp_default("hive_user","hive")
 
     $hcat_server_host = hdp_default("hive_server_host")