caviar.engine.nodealloc

Node allocator module.

class caviar.engine.nodealloc.NodeAllocator(ssh_session_fact, das_machine, node_alloc_machine)

Bases: object

Node allocator.

prepare(domain_name, node_name)

Install the specified domain saved master password to the specified node file system.

Parameters:
  • domain_name (str) – Name of the domain who owns the saved master password.
  • node_name (str) – Name of the node where the master password must be installed on.
Return type:

str

Returns:

The node allocator host.