Builtins Action Set: Syntax

Provides actions that enable server management

addNode Action

Adds a machine to the server.

CASL Syntax

builtins.addNode <result=results> <status=rc> /
node={"string-1" <, "string-2", ...>},
role="CONTROLLER" | "WORKER"
;

Parameter Descriptions

node={"string-1" <, "string-2", ...>}

specifies the host names of the machines to add to the server.

role="CONTROLLER" | "WORKER"

specifies the role for the machine. Controllers are added as backup controllers. Only two controllers are supported.

DefaultWORKER

addNode Action

Adds a machine to the server.

Lua Syntax

results, info = s:builtins_addNode{
node={"string-1" <, "string-2", ...>},
role="CONTROLLER" | "WORKER"
}

Parameter Descriptions

node={"string-1" <, "string-2", ...>}

specifies the host names of the machines to add to the server.

role="CONTROLLER" | "WORKER"

specifies the role for the machine. Controllers are added as backup controllers. Only two controllers are supported.

DefaultWORKER

addNode Action

Adds a machine to the server.

Python Syntax

results= s.builtins.addNode(
node=["string-1" <, "string-2", ...>],
role="CONTROLLER" | "WORKER"
)

Parameter Descriptions

node=["string-1" <, "string-2", ...>]

specifies the host names of the machines to add to the server.

role="CONTROLLER" | "WORKER"

specifies the role for the machine. Controllers are added as backup controllers. Only two controllers are supported.

DefaultWORKER

addNode Action

Adds a machine to the server.

R Syntax

results <– cas.builtins.addNode(s,
node=list("string-1" <, "string-2", ...>),
role="CONTROLLER" | "WORKER"
)

Parameter Descriptions

node=list("string-1" <, "string-2", ...>)

specifies the host names of the machines to add to the server.

role="CONTROLLER" | "WORKER"

specifies the role for the machine. Controllers are added as backup controllers. Only two controllers are supported.

DefaultWORKER
Last updated: November 19, 2020