Skip to content

Commit

Permalink
feat: create Nomad server config with cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunster committed Jan 31, 2025
1 parent 2074611 commit a6b3e64
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cloud-init.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#cloud-config

Check failure on line 1 in cloud-init.yaml

View workflow job for this annotation

GitHub Actions / lint

usage: /usr/bin/cloud-init devel [-h]
packages:
- nomad
write_files:
- path: /etc/nomad/server.conf.hcl
content: |
data_dir = "/var/lib/nomad"
server {
enabled = true
bootstrap_expect = 1 # should increase this after testing
}
runcmd:
- systemctl enable nomad
- systemctl start nomad
- nomad agent -c /etc/nomad/server.conf.hcl

0 comments on commit a6b3e64

Please sign in to comment.