pallet.core.session documentation

Functions for querying sessions.

*session*

var

Current session state

admin-group

fn

[session]

User that remote commands are run under

admin-user

fn

[session]

User that remote commands are run under.

effective-user

fn

[session]

Return the effective username.

group-name

fn

[session]

Group name of the target-node.

groups-with-role

fn

[session role]

All target groups with the specified role.

is-64bit?

fn

[session]

Predicate for a 64 bit target

nodes-in-group

fn

[session group-name]

All nodes with the specified group-name.

nodes-with-role

fn

[session role]

All target nodes with the specified role.

os-family

fn

[session]

OS-Family of the target-node.

os-version

fn

[session]

OS-Family of the target-node.

role->nodes-map

fn

[session]

Returns a map from role to nodes.

safe-id

fn

[unsafe-id]

Computes a configuration and filesystem safe identifier corresponding to a potentially unsafe ID

session

fn

[]

Return the current session, which implements clojure's map interfaces.

session-context

macro

[pipeline-name event & args]

Defines a session context.

target

fn

[session]

Target server.

target-id

fn

[session]

Id of the target-node (unique for provider).

target-ip

fn

[session]

IP of the target-node.

target-name

fn

[session]

Name of the target-node.

target-node

fn

[session]

Target compute service node.

target-nodes

fn

[session]

Target nodes for current converge.

targets

fn

[session]

Targets for current converge.

targets-in-group

fn

[session group-name]

All targets with the specified group-name.

targets-with-role

fn

[session role]

All targets with the specified role.