diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/agent.hcl | 10 | ||||
-rw-r--r-- | example/example.hcl | 19 | ||||
-rw-r--r-- | example/example.nomad | 14 |
3 files changed, 24 insertions, 19 deletions
diff --git a/example/agent.hcl b/example/agent.hcl index c9dd670..f25b095 100644 --- a/example/agent.hcl +++ b/example/agent.hcl @@ -1,7 +1,7 @@ -log_level = "TRACE" +#log_level = "TRACE" -plugin "hello-driver" { - config { - shell = "bash" - } +client { +} + +plugin "exec2" { } diff --git a/example/example.hcl b/example/example.hcl new file mode 100644 index 0000000..fbbe4ad --- /dev/null +++ b/example/example.hcl @@ -0,0 +1,19 @@ +job "example" { + datacenters = ["dc1"] + type = "batch" + + group "example" { + task "hello-world" { + driver = "exec2" + + config { + command = "/nix/store/y41s1vcn0irn9ahn9wh62yx2cygs7qjj-coreutils-8.32/bin/cat" + args = ["/host-etc/nscd.conf"] + bind_read_only = { + "/nix" = "/nix", + "/etc" = "/host-etc", + } + } + } + } +} diff --git a/example/example.nomad b/example/example.nomad deleted file mode 100644 index cf7e73c..0000000 --- a/example/example.nomad +++ /dev/null @@ -1,14 +0,0 @@ -job "example" { - datacenters = ["dc1"] - type = "batch" - - group "example" { - task "hello-world" { - driver = "hello-world-example" - - config { - greeting = "hello" - } - } - } -} |