[otrs-cvs] otrs/Kernel Config.pm.dist,1.27,1.28

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel
In directory lancelot:/tmp/cvs-serv7134/Kernel

Modified Files:
	Config.pm.dist 
Log Message:
Added example connection strings for Orace and Microsoft SQL Server. Removed unused sections for Web Installer, updated descriptions.			

Author: mb

Index: Config.pm.dist
===================================================================
RCS file: /home/cvs/otrs/Kernel/Config.pm.dist,v
retrieving revision 1.27
retrieving revision 1.28
diff -2 -u -d -r1.27 -r1.28
--- Config.pm.dist	20 Nov 2012 14:26:12 -0000	1.27
+++ Config.pm.dist	4 Feb 2013 15:25:39 -0000	1.28
@@ -1,5 +1,5 @@
 # --
 # Kernel/Config.pm - Config file for OTRS kernel
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
 # --
 # $Id$
@@ -11,10 +11,10 @@
 #  Note:
 #
-#  -->> OTRS does have a lot of config settings. For more settings
-#       (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator,
-#       LDAP, PostMaster, Session, Preferences, ...) see
-#       Kernel/Config/Defaults.pm and copy your wanted lines into "this"
-#       config file. This file will not be changed on update!
-#
+#  -->> Most OTRS configuration should be done via the OTRS web interface
+#       and the SysConfig. Only for some configuration, such as database
+#       credentials and customer data source changes, you should edit this
+#       file. For changes do customer data sources you can copy the defenitions
+#       from Kernel/Config/Defaults.pm and paste them in this file.
+#       Config.pm will not be overwritten when updating OTRS.
 # --
 
@@ -25,40 +25,46 @@
 sub Load {
     my $Self = shift;
-    # ---------------------------------------------------- #
-    # ---------------------------------------------------- #
-    #                                                      #
-    #         Start of your own config options!!!          #
-    #                                                      #
-    # ---------------------------------------------------- #
-    # ---------------------------------------------------- #
 
     # ---------------------------------------------------- #
     # database settings                                    #
     # ---------------------------------------------------- #
-    # DatabaseHost
-    # (The database host.)
-    $Self->{DatabaseHost} = 'localhost';
-    # Database
-    # (The database name.)
-    $Self->{Database} = 'otrs';
-    # DatabaseUser
-    # (The database user.)
-    $Self->{DatabaseUser} = 'otrs';
-    # DatabasePw
-    # (The password of database user. You also can use bin/otrs.CryptPassword.pl
-    # for crypted passwords.)
-    $Self->{DatabasePw} = 'some-pass';
-    # DatabaseDSN
-    # (The database DSN for MySQL ==> more: "man DBD::mysql")
+
+    # The database host
+    $Self->{'DatabaseHost'} = 'localhost';
+
+    # The database name
+    $Self->{'Database'} = 'otrs';
+
+    # The database user
+    $Self->{'DatabaseUser'} = 'otrs';
+
+    # The password of database user. You also can use bin/otrs.CryptPassword.pl
+    # for crypted passwords
+    $Self->{'DatabasePw'} = 'some-pass';
+
+    # The database DSN for MySQL ==> more: "perldoc DBD::mysql"
     $Self->{DatabaseDSN} = "DBI:mysql:database=$Self->{Database};host=$Self->{DatabaseHost};";
 
-    # (The database DSN for PostgreSQL ==> more: "man DBD::Pg")
+    # The database DSN for PostgreSQL ==> more: "perldoc DBD::Pg"
     # if you want to use a local socket connection
 #    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};";
-    # if you want to use a tcpip connection
+    # if you want to use a TCP/IP connection
 #    $Self->{DatabaseDSN} = "DBI:Pg:dbname=$Self->{Database};host=$Self->{DatabaseHost};";
     # if you have PostgresSQL 8.1 or earlier, activate the legacy driver with this line:
 #    $Self->{DatabasePostgresqlBefore82} = 1;
 
+    # The database DSN for Microsoft SQL Server - only supported if OTRS is
+    # installed on Windows as well
+#    $Self->{DatabaseDSN} = "DBI:ODBC:driver={SQL Server};Server=$Self->{DatabaseHost},1433";
+#    $Self->{Database::Type} = 'mssql';
+
+
+    # The database DSN for Oracle ==> more: "perldoc DBD::oracle"
+#    $ENV{ORACLE_HOME} = '/u01/app/oracle/product/10.2.0/client_1';
+#    $ENV{NLS_DATE_FORMAT} = 'YYYY-MM-DD HH24:MI:SS';
+#    $ENV{NLS_LANG} = "american_america.utf8";
+
+#    $Self->{DatabaseDSN} = "DBI:Oracle:sid=OTRS;host=$Self->{DatabaseHost};port=1522;";
+
     # ---------------------------------------------------- #
     # fs root directory
@@ -67,23 +73,10 @@
 
     # ---------------------------------------------------- #
-    # insert your own config settings "here"               #
-    # config settings taken from Kernel/Config/Defaults.pm #
+    #        insert your own config settings here          #
     # ---------------------------------------------------- #
-    # $Self->{SessionUseCookie} = 0;
-    # $Self->{CheckMXRecord} = 0;
 
-    # ---------------------------------------------------- #
 
     # ---------------------------------------------------- #
-    # data inserted by installer                           #
-    # ---------------------------------------------------- #
-    # $DIBI$
-
-    # ---------------------------------------------------- #
-    # ---------------------------------------------------- #
-    #                                                      #
-    #           End of your own config options!!!          #
-    #                                                      #
-    # ---------------------------------------------------- #
+    #          end of your own config options              #
     # ---------------------------------------------------- #
 }
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.