incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: AMBARI-2667. keytab generation file needs to be updated based on the new csv. (srimanth)
Date Wed, 17 Jul 2013 03:04:20 GMT
Updated Branches:
  refs/heads/branch-1.2.5 6c6b7f2de -> 41dc31990


AMBARI-2667. keytab generation file needs to be updated based on the new csv. (srimanth)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/41dc3199
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/41dc3199
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/41dc3199

Branch: refs/heads/branch-1.2.5
Commit: 41dc3199074c2196b94328515ac26c9861b925db
Parents: 6c6b7f2
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Tue Jul 16 19:55:46 2013 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Tue Jul 16 20:03:38 2013 -0700

----------------------------------------------------------------------
 ambari-server/src/main/resources/scripts/keytabs.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/41dc3199/ambari-server/src/main/resources/scripts/keytabs.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/scripts/keytabs.sh b/ambari-server/src/main/resources/scripts/keytabs.sh
index ee7aecb..2e186e0 100755
--- a/ambari-server/src/main/resources/scripts/keytabs.sh
+++ b/ambari-server/src/main/resources/scripts/keytabs.sh
@@ -66,9 +66,10 @@ processCSVFile () {
         service=`echo $line|cut -d , -f 2`;
         principal=`echo $line|cut -d , -f 3`;
         keytabFile=`echo $line|cut -d , -f 4`;
-        owner=`echo $line|cut -d , -f 5`;
-        group=`echo $line|cut -d , -f 6`;
-        acl=`echo $line|cut -d , -f 7`;
+        keytabFilePath=`echo $line|cut -d , -f 5`;
+        owner=`echo $line|cut -d , -f 6`;
+        group=`echo $line|cut -d , -f 7`;
+        acl=`echo $line|cut -d , -f 8`;
         
         if [[ $seenHosts != *$hostName* ]]; then
               echo "mkdir -p ./keytabs_$hostName" >> commands.mkdir;
@@ -86,8 +87,8 @@ processCSVFile () {
           seenPrincipals="$seenPrincipals$principal"
         fi
         
-        tmpKeytabFile=${keytabFile/\/etc\/security\/keytabs/`pwd`/tmp_keytabs}
-        newKeytabFile=${keytabFile/\/etc\/security\/keytabs/`pwd`/keytabs_$hostName}
+        tmpKeytabFile=${keytabFilePath/\/etc\/security\/keytabs/`pwd`/tmp_keytabs}
+        newKeytabFile=${keytabFilePath/\/etc\/security\/keytabs/`pwd`/keytabs_$hostName}
         if [ ! -f $tmpKeytabFile ]; then
           echo "kadmin.local -q \"xst -k $tmpKeytabFile $principal\"" >> commands.xst;
         
         fi


Mime
View raw message