pallet.node documentation

API for nodes in pallet

compute-service

fn

[node]

Return the service provider the node was provided by.

group-name

fn

[node]

Returns the group name for the node.

hardware

fn

[node]

Return a map with :cpus, :ram, and :disks information. The ram is reported in Mb. The :cpus is a sequence of maps, one for each cpu, containing the number of :cores on each. The :disks is a sequence of maps, containing a :size key for each drive, in Gb. Other keys may be present.

hostname

fn

[node]

TODO make this work on ec2

image-user

fn

[node]

Return the user that is defined by the image.

is-64bit?

fn

[node]

64 Bit OS predicate

node-map

fn

[node]

Convert a node into a map representing the node.

node?

fn

[obj]

Predicate to test whether an object implements the Node protocol

os-family

fn

[node]

Return a node's os-family, or nil if not available.

os-version

fn

[node]

Return a node's os-version, or nil if not available.

packager

fn

[node]

The packager to use on the node

primary-ip

fn

[node]

Returns the first public IP for the node.

private-ip

fn

[node]

Returns the first private IP for the node.

proxy

fn

[node]

A map with SSH proxy connection details.

running?

fn

[node]

Predicate to test if node is running.

ssh-port

fn

[node]

Extract the port from the node's userMetadata

tag

fn

[node tag-name]
[node tag-name default-value]

Return the specified tag.

tag!

fn

[node tag-name value]

Set a value on the given tag-name.

taggable?

fn

[node]

Predicate to test the availability of tags.

tags

fn

[node]

Return the tags.

terminated?

fn

[node]

Predicate to test if node is terminated.