pallet.compute documentation

Abstraction of the compute interface

admin-group

[target]

User that remote commands are run under

base-distribution

[target]

Base distribution for the target.

compute-service

[provider-name & {:keys [identity credential extensions node-list endpoint environment sub-services], :as options}]

Instantiate a compute service. The provider name should be a recognised jclouds provider, or "node-list". The other arguments are keyword value pairs. - :identity username or key - :credential password or secret - :extensions extension modules for jclouds - :node-list a list of nodes for the "node-list" provider. - :environment an environment map with service specific values.

defmulti-os

[name [& args]]

Defines a defmulti used to abstract over the target operating system. The function dispatches based on the target operating system, that is extracted from the session passed as the first argument.

Version comparisons are not included

packager

[target]

Package manager

supported-providers

[]

A list of supported provider names. Each name is suitable to be passed to compute-service.

boot-if-down

[compute nodes]

Boot the specified nodes, if they are not running.

ensure-os-family

[compute group-spec]

Called on startup of a new node to ensure group-spec has an os-family attached to it.

nodes

[compute]

List nodes

reboot

[compute nodes]

Reboot the specified nodes

shutdown

[compute nodes user]

Shutdown specified nodes

shutdown-node

[compute node user]

Shutdown a node.