pallet.actions-impl documentation

Implementation namespace for Pallet's action primitives.

*force-overwrite*

var

Var to control overwriting of modified file content on remote nodes.

*install-new-files*

var

Var to control installation of new file content on remote nodes.

copy-filename

fn

[session script-dir path]

Generate a file name for a copy of the given path.

if-action

fn

[condition]

An 'if' flow control action, that claims the next (up to two) nested scopes.

init-script-path

fn

[service-name]

Path to the specified initd script

md5-filename

fn

[session script-dir path]

Generate a md5 file name for a given path.

new-filename

fn

[session script-dir path]

Generate a temporary file name for a given path.

pallet-state-root

fn

[session]

This is where pallet will keep backups and md5 files.

remote-file-action

fn

[path {:keys [action url local-file remote-file link content literal template values md5 md5-url owner group mode force blob blobstore overwrite-changes install-new-files no-versioning max-versions flag-on-changed force insecure], :or {action :create, max-versions 5}, :as options}]

An action that implements most of remote-file, but requires a helper in order to deal with local file transfer.

setup-node-action

fn

[usernames]

Action to setup the node. Use this if file transfers fail due to e.g state-root not existing.

upload-filename

fn

[session script-dir path]

Generate a temporary file name for a given path.