mc_cloud_controller runner

mc_states.runners.mc_cloud_controller.configure_node(target, no_saltify=True, no_vms=True, no_controller=True, *a, **kw)

Shortcut to only configure a compute node

mc_states.runners.mc_cloud_controller.configure_vm(target, no_controller=True, no_compute_nodes=True, no_saltify=True, *a, **kw)

Shortcut to only configure vm

mc_states.runners.mc_cloud_controller.deploy(output=True, ret=None)

Prepare cloud controller configuration can also apply per virtualization type configuration

mc_states.runners.mc_cloud_controller.dns_conf(output=True, ret=None)

Prepare cloud controller dns (BIND) server

mc_states.runners.mc_cloud_controller.exists(name)

return true if the ‘target’ is already provisionned

mc_states.runners.mc_cloud_controller.orchestrate(only=None, only_vms=None, skip=None, skip_vms=None, no_controller=False, no_dns_conf=False, no_configure=False, no_saltify=False, no_provision=False, no_vms=False, no_compute_nodes=False, no_post_provision=False, no_vms_post_provision=False, output=True, refresh=True, ret=None)

install controller, compute node, vms & run postdeploy

no_configure
skip configuring the cloud controller
skip
list of compute nodes to skip
skip_vms
list of vm to skip
only
explicit list of compute nodes to deploy
only_vms
explicit list of vm to deploy
no_provision
skip compute node & vm provision
no_compute_nodes
skip configuration of compute nodes
no_vms
do not provision vms
no_post_provision
do not post provision compute nodes
no_vms_post_provision
do not post provision vms
mc_states.runners.mc_cloud_controller.post_configure(output=True)

post configuration

mc_states.runners.mc_cloud_controller.prepare_controller(no_saltify=True, no_compute_nodes=True, no_vms=True, *a, **kw)

Shortcut to prepare the controller

(DNS; VT orchestration)

mc_states.runners.mc_cloud_controller.remove(node_name, destroy=False, remove_key=True, only_stop=False, **kwargs)

Remove a node NOTE: only lxc vms are supported for now Actually this consists in:

  • disabling crons
  • disabling services
  • unlinking the key from mastersalt
mc_states.runners.mc_cloud_controller.report(*a, **kw)

Alias to mc_cloud_compute_node.report

mc_states.runners.mc_cloud_controller.run_vt_hook(hook_name, ret=None, target=None, vts=None, output=True, *args, **kwargs)

Run an hook for a special vt on a controller, or a compute node or a vm

mc_states.runners.mc_cloud_controller.saltify_node(target, no_controller=True, no_compute_nodes=True, no_vms=True, *a, **kw)

Shortcut to only saltify something