Skip to content

Commit

Permalink
wip: Provide a script to simplify installation on workers (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Nouguier committed May 28, 2019
1 parent 8b59d99 commit 3caf8fe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install/setup-worker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

if [ -z "$1" ]; then
echo error: the command \"setup-worker\" requires one argument.
echo usage: setup-worker \<manager__private_ip\>
exit 1
fi

local MANAGER_PRIVATE_IP=$1
local SSHFS="$USER@$MANAGER_PRIVATE_IP:$HOME/kargo/.kargo $HOME/kargo/.kargo -o IdentityFile=$HOME/.ssh/ssh.pem -o allow_other -o StrictHostKeyChecking=no"

mkdir -p $HOME/kargo/.kargo
$SSHFS
echo $SSHFS | crontab -

0 comments on commit 3caf8fe

Please sign in to comment.