Skip to content

Commit 4c3996f

Browse files
committed
feat: create Nomad server config with cloud-init
1 parent e5486db commit 4c3996f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

cloud-init.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#cloud-config
22
packages:
33
- nomad
4+
write_files:
5+
- path: /etc/nomad/server.conf.hcl
6+
content: |
7+
data_dir = "/var/lib/nomad"
8+
9+
server {
10+
enabled = true
11+
bootstrap_expect = 1 # should increase this after testing
12+
}
413
runcmd:
5-
- systemctl enable nomad
6-
- systemctl start nomad
14+
- nomad agent -c /etc/nomad/server.conf.hcl

0 commit comments

Comments
 (0)