canasta host add

From Canasta Wiki

canasta > host > add

canasta host add

Add or update a host entry in the persistent hosts.yml

Synopsis

Add or update a host definition in $CANASTA_CONFIG_DIR/hosts.yml. Saved hosts can then be targeted by short name with --host.

canasta host add [flags]

Examples

canasta host add --name prod1 --ssh ubuntu@prod1.example.com
canasta host add --name prod2 --ssh canasta@10.0.0.5 --python /usr/bin/python3

Flags

Flag Shorthand Description Default Required Orchestrator
--host-name -n Short name for the host (used with --host) Both
--python Path to python3 on the remote host Both
--ssh SSH destination (user@host or just host) Both

Global Flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both