From a2a9dc9efdc6bc27fab3b73f406c2c800a7ebdd8 Mon Sep 17 00:00:00 2001 From: lissav Date: Wed, 14 Aug 2013 09:48:02 -0400 Subject: [PATCH] setup interface for setting tunables --- xCAT-server/sbin/xcatconfig | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 4f51516b9..0f46907b2 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -64,6 +64,7 @@ if ( 'k|sshkeys' => \$::genSSHRootKeys, 'm|mgtnode' => \$::setupMNinDB, 's|sshnodehostkeys' => \$::genSSHNodeHostKeys, + 't|tunables' => \$::settunables, 'c|credentials' => \$::genCredentials, 'd|database' => \$::initDB, 'h|help' => \$::HELP, @@ -101,6 +102,7 @@ if ($::FORCE) || $::genSSHRootKeys || $::genSSHNodeHostKey || $::genCredentials + || $::settunables || $::initDB) { my $warning = @@ -234,6 +236,17 @@ if (xCAT::Utils->isMN()) { &genSSHNodeHostKey; } } + +# +# Set tunables +# +# +if ($::FORCE || $::settunables || $::INITIALINSTALL ) +{ + if ($::osname eq 'Linux') { + &settunables; + } +} # # gen root's ssh keys, if needed and copy to appropriate directories to # be used during install @@ -628,11 +641,11 @@ sub usage { xCAT::MsgUtils->message( 'I', - "Usage:\nxcatconfig - Performs basic xCAT setup operations on an xCAT management node. This command should not be run on an xCAT Service Node, unless you are making it a Management Node.\n" + "Usage:\nxcatconfig - Performs basic xCAT setup operations on an xCAT management node. Only the -t option should be used on a Service Node.\n" ); xCAT::MsgUtils->message( 'I', - "xcatconfig [-h|--help]\nxcatconfig [-v|--version]\nxcatconfig [-f|--force] [-V|--verbose]\nxcatconfig [-i|--initinstall] [-V|--verbose]\nxcatconfig [-u|--updateinstall] [-V|--verbose]\nxcatconfig [-k|--sshkeys] [-s|--sshnodehostkeys] [-c|--credentials] [-d|database] [-m|mgtnode] [-V|--verbose]" + "xcatconfig [-h|--help]\nxcatconfig [-v|--version]\nxcatconfig [-f|--force] [-V|--verbose]\nxcatconfig [-i|--initinstall] [-V|--verbose]\nxcatconfig [-u|--updateinstall] [-V|--verbose]\nxcatconfig [-k|--sshkeys] [-s|--sshnodehostkeys] [-c|--credentials] [-d|database] [-m|mgtnode] [-t|tunables] [-V|--verbose]" ); } @@ -822,7 +835,24 @@ sub genSSHRootKeys ); } } +#----------------------------------------------------------------------------- +=head3 settunables + + Will set the default suggested tunables on the Management Node or service node for Linux + +=cut + +#----------------------------------------------------------------------------- + +sub settunables + +{ + xCAT::MsgUtils->message( + 'I', + "The set of tunables that will be initialized is TBD."); + +} #----------------------------------------------------------------------------- =head3 genSSHNodeHostKey