module documentation

Script to update a node's SSH key files.

This script is used to update the node's 'authorized_keys' and 'ganeti_pub_key' files. It will be called via SSH from the master node.

Exception SshUpdateError Local class for reporting errors.
Function GenerateRootSshKeys (Re-)generates the root SSH keys.
Function Main Main routine.
Function ParseOptions Parses the options passed to the program.
Function UpdateAuthorizedKeys Updates root's authorized_keys file.
Function UpdatePubKeyFile Updates the file of public SSH keys.
Constant _DATA_CHECK Undocumented
def GenerateRootSshKeys(data, dry_run):

(Re-)generates the root SSH keys.

Parameters
data:dictInput data
dry_run:booleanWhether to perform a dry run
def Main():

Main routine.

def ParseOptions():

Parses the options passed to the program.

Returns
Options and arguments
def UpdateAuthorizedKeys(data, dry_run, _homedir_fn=None):

Updates root's authorized_keys file.

Parameters
data:dictInput data
dry_run:booleanWhether to perform a dry run
_homedir_fnUndocumented
def UpdatePubKeyFile(data, dry_run, key_file=pathutils.SSH_PUB_KEYS):

Updates the file of public SSH keys.

Parameters
data:dictInput data
dry_run:booleanWhether to perform a dry run
key_fileUndocumented