Package ganeti :: Package tools :: Module node_daemon_setup
[hide private]
[frames] | no frames]

Module node_daemon_setup

source code

Script to configure the node daemon.

Classes [hide private]
  SetupError
Local class for reporting errors.
Functions [hide private]
 
ParseOptions()
Parses the options passed to the program.
source code
 
VerifyOptions(parser, opts, args)
Verifies options and arguments for correctness.
source code
 
VerifySsconf(data, cluster_name, _verify_fn=ssconf.VerifyKeys)
Verifies ssconf names.
source code
 
Main()
Main routine.
source code
Variables [hide private]
  _DATA_CHECK = ht.TStrictDict(False, True, {constants.NDS_CLUST...

Imports: os, optparse, sys, logging, cli, constants, errors, pathutils, utils, runtime, ht, ssconf, common


Function Details [hide private]

ParseOptions()

source code 

Parses the options passed to the program.

Returns:
Options and arguments

VerifySsconf(data, cluster_name, _verify_fn=ssconf.VerifyKeys)

source code 

Verifies ssconf names.

Parameters:
  • data (dict)

Variables Details [hide private]

_DATA_CHECK

Value:
ht.TStrictDict(False, True, {constants.NDS_CLUSTER_NAME: ht.TNonEmptyS\
tring, constants.NDS_NODE_DAEMON_CERTIFICATE: ht.TNonEmptyString, cons\
tants.NDS_SSCONF: ht.TDictOf(ht.TNonEmptyString, ht.TString), constant\
s.NDS_START_NODE_DAEMON: ht.TBool, constants.NDS_NODE_NAME: ht.TString\
,})