Add server install option to turn on debugging
authorSimo Sorce <simo@redhat.com>
Fri, 6 Jun 2014 20:04:15 +0000 (16:04 -0400)
committerSimo Sorce <simo@redhat.com>
Fri, 6 Jun 2014 20:05:06 +0000 (16:05 -0400)
Use this in the testsuite so we can get meaningful output in the logs
when something fails.

Signed-off-by: Simo Sorce <simo@redhat.com>
ipsilon/install/ipsilon-server-install
templates/install/ipsilon.conf
tests/test1.cfg

index 1bf0072..1ffd594 100755 (executable)
@@ -102,7 +102,8 @@ def install(plugins, args):
                 'datadir': args['data_dir'],
                 'sysuser': args['system_user'],
                 'ipsilondir': BINDIR,
-                'staticdir': STATICDIR}
+                'staticdir': STATICDIR,
+                'debugging': "True" if args['server_debugging'] else "False"}
     if WSGI_SOCKET_PREFIX:
         confopts['wsgi_socket'] = 'WSGISocketPrefix %s' % WSGI_SOCKET_PREFIX
     files.write_from_template(ipsilon_conf,
@@ -216,6 +217,8 @@ def parse_args(plugins):
                         help="User account that is assigned admin privileges")
     parser.add_argument('--config-profile', default=None,
                         help="File containing install options")
+    parser.add_argument('--server-debugging', action='store_true',
+                        help="Uninstall the server and all data")
     parser.add_argument('--uninstall', action='store_true',
                         help="Uninstall the server and all data")
 
index 89e14f1..357a3a7 100644 (file)
@@ -1,7 +1,7 @@
 [global]
-debug = False
+debug = ${debugging}
 
-log.screen = False
+log.screen = ${debugging}
 base.mount = "/${instance}"
 base.dir = "${staticdir}"
 admin.config.db = "${datadir}/adminconfig.sqlite"
index 81ae254..bd592a2 100644 (file)
@@ -21,6 +21,7 @@ testauth=yes
 pam=no
 krb=no
 ipa=no
+server_debugging=True
 
 [sp1_globals]
 HTTPDCONFD=${TESTDIR}/sp1/conf.d