more vault
[arvados.git] / services / boot / controller.go
index 526a6276fe7fbbc8e0c8c6c485dbae0233ba715b..abd07255ea7896baf586885096be99881081e9ce 100644 (file)
@@ -2,18 +2,39 @@ package main
 
 import (
        "context"
+       "path"
 )
 
 type controller struct{}
 
 func (c *controller) Boot(ctx context.Context) error {
+       cfg := cfg(ctx)
        return Series{
+               cfg,
                Concurrent{
-                       cfg(ctx),
                        installCerts,
+                       arvadosRepo,
                },
                Concurrent{
-                       consul,
+                       postgresql,
+                       &download{
+                               URL:  "https://releases.hashicorp.com/consul-template/0.18.0/consul-template_0.18.0_linux_amd64.zip",
+                               Dest: path.Join(cfg.UsrDir, "bin", "consul-template"),
+                               Size: 6912352,
+                               Mode: 0755,
+                       },
                },
+               consul,
+               vault,
+               nomad,
+               // Concurrent{
+               //      dispatchLocal,
+               //      dispatchSLURM,
+               //      gitHTTP,
+               //      keepbalance,
+               //      keepproxy,
+               //      keepstore,
+               //      websocket,
+               // },
        }.Boot(ctx)
 }