mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-25 22:51:49 +00:00
sync
This commit is contained in:
@@ -54,9 +54,26 @@ nomad_exec_bash SERVICE:
|
||||
nomad_exec_sh SERVICE:
|
||||
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc exec -task {{SERVICE}} -t ${ID} /bin/sh
|
||||
|
||||
|
||||
nomad_log SERVICE TASK:
|
||||
ID=$(nomad status {{SERVICE}} | grep "running" | grep "{{SERVICE}}" | head -n 1| awk '{print $1}'); nomad alloc logs -task {{TASK}} ${ID}
|
||||
|
||||
run_nicotine:
|
||||
mullvad connect
|
||||
-nix-shell -p nicotine-plus --command nicotine-plus
|
||||
mullvad disconnect
|
||||
|
||||
# Define your hosts here
|
||||
HOSTS := "odroid6 odroid7 odroid8 opti1"
|
||||
|
||||
# Run a command on all predefined hosts
|
||||
ssh_all COMMAND:
|
||||
@for host in {{HOSTS}}; do echo "=== Running on $host ==="; ssh "$host" '{{COMMAND}}'; echo ""; done
|
||||
|
||||
# Run a command on a specific host
|
||||
ssh_host HOST COMMAND:
|
||||
@ssh "{{HOST}}" '{{COMMAND}}'
|
||||
|
||||
# Show the list of predefined hosts
|
||||
ssh_list_hosts:
|
||||
@echo "Predefined hosts:"
|
||||
@echo "{{HOSTS}}" | tr ' ' '\n' | sed 's/^/ - /'
|
||||
|
||||
Reference in New Issue
Block a user