aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-28 11:33:28 +0100
committerGitHub <noreply@github.com>2022-11-28 11:33:28 +0100
commita9e5003ab305675d6be3c0f032772d0de38df969 (patch)
treed4280abc23e44488b7115dd150419351967b5ed2 /example
downloadnomad-driver-nix2-a9e5003ab305675d6be3c0f032772d0de38df969.tar.gz
nomad-driver-nix2-a9e5003ab305675d6be3c0f032772d0de38df969.zip
Initial commit
Diffstat (limited to 'example')
-rw-r--r--example/agent.hcl7
-rw-r--r--example/example.nomad14
2 files changed, 21 insertions, 0 deletions
diff --git a/example/agent.hcl b/example/agent.hcl
new file mode 100644
index 0000000..c9dd670
--- /dev/null
+++ b/example/agent.hcl
@@ -0,0 +1,7 @@
+log_level = "TRACE"
+
+plugin "hello-driver" {
+ config {
+ shell = "bash"
+ }
+}
diff --git a/example/example.nomad b/example/example.nomad
new file mode 100644
index 0000000..cf7e73c
--- /dev/null
+++ b/example/example.nomad
@@ -0,0 +1,14 @@
+job "example" {
+ datacenters = ["dc1"]
+ type = "batch"
+
+ group "example" {
+ task "hello-world" {
+ driver = "hello-world-example"
+
+ config {
+ greeting = "hello"
+ }
+ }
+ }
+}