Server pack template
Host, user and the SSH command for a box you log in to.
Adds #server to the browser demo. No account.
Keys
- host
- web-1.example.com
- user
- deploy
- port
- 22
- ssh_cmd:command
- ssh [email protected]
- panel:url
- https://panel.example.com
Example values. Rename, add or remove keys after you create the pack.
In a task
upgrade php on #server this weekend @sat !2
In the terminal
tsk env server
HOST=web-1.example.com
USER=deploy
PORT=22
SSH_CMD='ssh [email protected]'
PANEL=https://panel.example.comThe real tsk decrypts secrets on your machine and prints them.
Every box you look after comes with the same questions: which user, which port, which panel. This template keeps the answers on the task that needs them, so “patch web-1” carries the way in.
tsk get server.ssh_cmd
tsk open server.panel
Make one pack per machine (web-1, worker-2) and rename the fields that do not fit. Typed fields keep commands, URLs and plain text apart, so tsk open only ever opens URLs.