pallet.executors documentation

Action executors for pallet.

An action has a :action-type. Known types include :script and :fn/clojure.

An action has a :location, :origin for execution on the node running pallet, and :target for the target node.

The action-type determines how the action should be handled:

:script - action produces script for execution on remote machine :fn/clojure - action is a function for local execution :transfer/to-local - action is a function specifying remote source and local destination. :transfer/from-local - action is a function specifying local source and remote destination.

action-plan-data

fn

[session {:keys [action args blocks], :as action-m}]

Return an action's data.

default-executor

fn

[session action]

The standard direct executor for pallet. Target actions for localhost are executed via shell, rather than via ssh.

direct-script

fn

[session {:keys [args script-dir], :as action}]

Execute the direct action implementation, which returns script or other argument data, and metadata.

force-target-via-ssh-executor

fn

[session action]

Direct executor where target actions are always over ssh.