ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject git commit: AMBARI-5893. kerberos-setup.sh fails on suse (aonishuk)
Date Mon, 26 May 2014 13:26:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 0bbf2f32a -> 1f51888aa


AMBARI-5893. kerberos-setup.sh fails on suse (aonishuk)


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

Branch: refs/heads/trunk
Commit: 1f51888aacef8031413655821733e5c8ee6d986e
Parents: 0bbf2f3
Author: Andrew Onishuk <aonishuk@hortonworks.com>
Authored: Mon May 26 16:26:27 2014 +0300
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Mon May 26 16:26:27 2014 +0300

----------------------------------------------------------------------
 ambari-server/src/main/resources/scripts/kerberos-setup.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1f51888a/ambari-server/src/main/resources/scripts/kerberos-setup.sh
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/scripts/kerberos-setup.sh b/ambari-server/src/main/resources/scripts/kerberos-setup.sh
index d4c9aba..62a8400 100755
--- a/ambari-server/src/main/resources/scripts/kerberos-setup.sh
+++ b/ambari-server/src/main/resources/scripts/kerberos-setup.sh
@@ -195,8 +195,10 @@ installKDC () {
     OLD_DEBIAN_FRONTEND=$DEBIAN_FRONTEND
     export DEBIAN_FRONTEND=noninteractive
     $inst_cmd krb5-kdc krb5-admin-server krb5-user libpam-krb5 libpam-ccreds auth-client-config
+  elif [ $os == 'suse' ] ; then
+    $inst_cmd krb5 krb5-server krb5-client
   else
-    $inst_cmd krb5-server krb5-libs krb5-auth-dialog  krb5-workstation
+    $inst_cmd krb5-server krb5-libs krb5-auth-dialog krb5-workstation
   fi
   # Configure /etc/krb5.conf
   cp $krb5_conf $krb5_conf".bak"
@@ -232,6 +234,8 @@ installKDC () {
   export PDSH_SSH_ARGS_APPEND="-q -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
-o PreferredAuthentications=publickey"
   if [ $os == 'debian' ]; then
     pdsh -R ssh -w $hostNames OLD_DEBIAN_FRONTEND=$DEBIAN_FRONTEND; export DEBIAN_FRONTEND=noninteractive;
$inst_cmd krb5-user libpam-krb5 libpam-ccreds auth-client-config; export DEBIAN_FRONTEND=OLD_DEBIAN_FRONTEND
+  elif [ $os == 'suse' ] ; then
+    pdsh -R ssh -w $hostNames $inst_cmd krb5-client
   else
     pdsh -R ssh -w $hostNames $inst_cmd krb5-workstation
   fi


Mime
View raw message