From c85a7a1acf8df9408d1729884b842506ee2c21d9 Mon Sep 17 00:00:00 2001
From: Moe Jette <jette1@llnl.gov>
Date: Thu, 31 Mar 2011 17:18:24 +0000
Subject: [PATCH] modify the default values in cray.conf so that the file will
 not normally be required.

---
 doc/man/man5/cray.conf.5              | 8 +++++---
 src/plugins/select/cray/cray_config.h | 6 +++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/doc/man/man5/cray.conf.5 b/doc/man/man5/cray.conf.5
index 93c769ffb3f..94f06879edb 100644
--- a/doc/man/man5/cray.conf.5
+++ b/doc/man/man5/cray.conf.5
@@ -6,7 +6,9 @@ cray.conf \- Slurm configuration file for the Cray\-specific information
 .SH "DESCRIPTION"
 \fB/etc/cray.conf\fP is an ASCII file which defines parameters used by 
 Slurm's select/cray plugin in support of Cray systems. The file will always
-be located in the same directory as the \fBslurm.conf\fP file.
+be located in the same directory as the \fBslurm.conf\fP file. The default
+configuration parameters will work properly in a typical installation and
+this file will not be required.
 .LP
 Parameter names are case insensitive.
 Any text following a "#" in the configuration file is treated
@@ -46,7 +48,7 @@ The default value is \fIsdb\fR.
 .TP
 \fBSDBpass\fR=<password>
 Password used to access the ALPS database.
-The default value is NULL.
+The default value is \fIbasic\fR.
 
 .TP
 \fBSDBport\fR=<port_number>
@@ -56,7 +58,7 @@ The default value is 0.
 .TP
 \fBSDBuser\fR=<user_name>
 Name of user used to access the ALPS database.
-The default value is NULL.
+The default value is \fIbasic\fR.
 
 .SH "EXAMPLE"
 .LP
diff --git a/src/plugins/select/cray/cray_config.h b/src/plugins/select/cray/cray_config.h
index 8f122150e55..a68c2dba1fc 100644
--- a/src/plugins/select/cray/cray_config.h
+++ b/src/plugins/select/cray/cray_config.h
@@ -66,13 +66,13 @@ typedef struct {
 /* database name to use  */
 #define DEFAULT_CRAY_SDB_DB       "XTAdmin"
 /* DNS name of SDB host */
-#define DEFAULT_CRAY_SDB_HOST "sdb"
+#define DEFAULT_CRAY_SDB_HOST     "sdb"
 /* If NULL, use value from my.cnf */
-#define DEFAULT_CRAY_SDB_PASS     NULL
+#define DEFAULT_CRAY_SDB_PASS     "basic"
 /* If NULL, use value from my.cnf */
 #define DEFAULT_CRAY_SDB_PORT     0
 /* If NULL, use value from my.cnf */
-#define DEFAULT_CRAY_SDB_USER     NULL
+#define DEFAULT_CRAY_SDB_USER     "basic"
 
 extern cray_config_t *cray_conf;
 
-- 
GitLab