X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/307e7af02a89f35e768b1cce368593eb64cdcb3d..refs/heads/deploy-agent:/lib/setup/setup.go diff --git a/lib/setup/setup.go b/lib/setup/setup.go index 0170c96e0b..379ccb2e5f 100644 --- a/lib/setup/setup.go +++ b/lib/setup/setup.go @@ -3,6 +3,7 @@ package setup import ( "flag" "fmt" + "log" "os" "git.curoverse.com/arvados.git/lib/agent" @@ -11,8 +12,14 @@ import ( ) func Command() *Setup { + hostname, err := os.Hostname() + if err != nil { + log.Fatalf("hostname: %s", err) + } + return &Setup{ Agent: agent.Command(), + LANHost: hostname, PreloadDir: "/var/cache/arvados", } } @@ -20,6 +27,7 @@ func Command() *Setup { type Setup struct { *agent.Agent InitVault bool + LANHost string PreloadDir string encryptKey string