You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by hf...@apache.org on 2017/03/23 04:57:47 UTC

[1/2] incubator-trafodion git commit: [TRAFODION-2533] pyinstaller - check ssh pam settings during installation

Repository: incubator-trafodion
Updated Branches:
  refs/heads/release2.1 a48a06dbd -> e8a88e5fa


[TRAFODION-2533] pyinstaller - check ssh pam settings during installation


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/5d357950
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/5d357950
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/5d357950

Branch: refs/heads/release2.1
Commit: 5d35795061af9c06bc1d1715d28e951ba3977546
Parents: e48a2be
Author: Eason <hf...@gmail.com>
Authored: Mon Mar 13 13:31:18 2017 +0800
Committer: Eason <hf...@gmail.com>
Committed: Mon Mar 13 13:31:18 2017 +0800

----------------------------------------------------------------------
 install/python-installer/scripts/constants.py  | 2 ++
 install/python-installer/scripts/traf_check.py | 6 ++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/5d357950/install/python-installer/scripts/constants.py
----------------------------------------------------------------------
diff --git a/install/python-installer/scripts/constants.py b/install/python-installer/scripts/constants.py
index b7d3096..1f18e99 100644
--- a/install/python-installer/scripts/constants.py
+++ b/install/python-installer/scripts/constants.py
@@ -41,6 +41,8 @@ DEF_PORT_FILE = CONFIG_DIR + '/default_ports.ini'
 DBCFG_FILE = INSTALLER_LOC + '/db_config'
 DBCFG_TMP_FILE = INSTALLER_LOC + '/.db_config_temp'
 
+SSH_CONFIG_FILE = '/etc/ssh/sshd_config'
+
 SSHKEY_FILE = '/tmp/id_rsa'
 TMP_DIR = '/tmp/.trafodion_install_temp'
 

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/5d357950/install/python-installer/scripts/traf_check.py
----------------------------------------------------------------------
diff --git a/install/python-installer/scripts/traf_check.py b/install/python-installer/scripts/traf_check.py
index 31d62a9..6463589 100755
--- a/install/python-installer/scripts/traf_check.py
+++ b/install/python-installer/scripts/traf_check.py
@@ -28,6 +28,7 @@ import json
 import sys
 import os
 from common import run_cmd, cmd_output, err, Version
+from constants import SSH_CONFIG_FILE
 
 class Check(object):
     """ check system envs """
@@ -40,6 +41,11 @@ class Check(object):
         """ check sudo access """
         run_cmd('sudo -n echo -n "check sudo access" > /dev/null 2>&1')
 
+    def check_ssh_pam(self):
+        """ check if UsePAM is set to yes in sshd_config """
+        if not cmd_output('grep "^UsePAM yes" %s' % SSH_CONFIG_FILE):
+            err('\'UsePAM\' should be set to \'yes\' in %s' % SSH_CONFIG_FILE)
+
     def check_hbase_xml(self):
         """ check if hbase-site.xml file exists """
         hbase_xml_file = self.dbcfgs['hbase_xml_file']


[2/2] incubator-trafodion git commit: Merge [TRAFODION-2553] PR-1001 pyinstaller - check ssh pam settings during installation

Posted by hf...@apache.org.
Merge [TRAFODION-2553] PR-1001 pyinstaller - check ssh pam settings during installation


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

Branch: refs/heads/release2.1
Commit: e8a88e5facad5148b9fcfea43e968980e9c3b19d
Parents: a48a06d 5d35795
Author: Yi (Eason) Zhang <hf...@apache.org>
Authored: Thu Mar 23 11:37:46 2017 +0800
Committer: Yi (Eason) Zhang <hf...@apache.org>
Committed: Thu Mar 23 11:37:46 2017 +0800

----------------------------------------------------------------------
 install/python-installer/scripts/constants.py  | 2 ++
 install/python-installer/scripts/traf_check.py | 6 ++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------