vmshepherd.presets package

Submodules

vmshepherd.presets.abstract module

Preset configuration (or sometime called Preset store) is a mechanism to fetch and prepare cluster definition/spec for VmShepherd. Preset configuration driver should implement _get_preset_spec and _list.

Initialization - consider following config:

presets:
  driver: SomeC
  param1: AAAA
  param2: BBBB
  some_x: CCC

All params will be passed as config dict to the driver init:

class vmshepherd.presets.abstract.AbstractConfigurationDriver(runtime, defaults)[source]

Bases: object

get_preset(preset_name)[source]
list_presets(refresh=True)[source]
reconfigure(config, defaults)[source]
refresh_presets()[source]

vmshepherd.presets.directory_driver module

class vmshepherd.presets.directory_driver.DirectoryDriver(config, runtime, defaults)[source]

Bases: vmshepherd.presets.abstract.AbstractConfigurationDriver

reconfigure(config, defaults)[source]

vmshepherd.presets.gitrepo_driver module

class vmshepherd.presets.gitrepo_driver.GitRepoDriver(config, runtime, defaults)[source]

Bases: vmshepherd.presets.abstract.AbstractConfigurationDriver

reconfigure(config, defaults)[source]
reload()[source]

vmshepherd.presets.preset module

class vmshepherd.presets.preset.Preset(name: str)[source]

Bases: object

configure(config: dict, runtime_mgr: object, iaas: object, healthcheck: object)[source]
manage()[source]

Manage function docstring

vms

Module contents