Simplified Linode instance tools.
Configure:
cat >config <<EOF
LINODE_API_TOKEN=aa02....d9c2
LINODE_LABEL=label
LINODE_IMAGE=linode/debian11
LINODE_TYPE=g6-nanode-1
LINODE_CONNECT_METHOD=ipv4
LINODE_DOMAIN=domain.com
LINODE_DOMAIN_RECORD=name
EOF
export LINODE_TOOL_CONFIG=config
Check the status:
linode-tool status
Create the instance and associated domain records:
linode-tool create
Run script.sh
on the instance:
linode-tool -s script.sh update
SSH into the instance:
linode-tool ssh
Delete the instance and associated domain records:
linode-tool delete
Get help and usage information:
linode-api --help
linode-create --help
linode-delete --help
linode-dns --help
linode-list --help
linode-query --help
linode-tool --help
mkdir -p "$HOME/.local"
git clone https://github.com/vjagaro/linode-tools.git "$HOME/.local/linode-tools"
echo >> "$HOME/.profile"
echo 'PATH="$HOME/.local/linode-tools/bin:$PATH"' >> "$HOME/.profile"
These scripts depend on curl
and jq
being installed:
sudo apt-get install -y curl jq