module documentation
Script to prepare a node for joining a cluster.
Exception |
|
Local class for reporting errors. |
Function |
|
Main routine. |
Function |
|
Parses the options passed to the program. |
Function |
|
Updates SSH daemon's keys. |
Function |
|
Updates root's SSH keys. |
Function | _ |
Updates SSH key files. |
Constant | _DATA |
Undocumented |
Constant | _SSH |
Undocumented |
Constant | _SSH |
Undocumented |
Updates SSH daemon's keys.
Unless dry_run is set, the daemon is restarted at the end.
Parameters | |
data:dict | Input data |
dry | Whether to perform a dry run |
_runcmd | Undocumented |
_keyfiles | Undocumented |
Updates root's SSH keys.
Root's authorized_keys file is also updated with new public keys.
Parameters | |
data:dict | Input data |
dry | Whether to perform a dry run |
_homedir | Undocumented |
Updates SSH key files.
Parameters | |
keys:sequence of tuple; (string, string, string) | Keys to write, tuples consist of key type (constants.SSHK_ALL ), public and private key |
dry | Whether to perform a dry run |
keyfiles:dict; (string as key, tuple with (string, string) as values) | Mapping from key types (constants.SSHK_ALL ) to file names; value tuples consist of public key filename and private key filename |
_DATA_CHECK =
¶
Undocumented
_SSH_KEY_LIST_ITEM =
¶
Undocumented
Value |
|