base-image/arch.nomad
2022-12-15 20:45:20 -06:00

49 lines
774 B
HCL

job "archlinux" {
datacenters = ["dc1"]
type = "service"
group "vms" {
count = 1
// network {
// port "ssh" { to = 22 }
// }
task "archlinux" {
driver = "qemu"
resources {
cpu = 500
memory = 1024
}
config {
accelerator = "kvm"
guest_agent = true
graceful_shutdown = true
image_path = "local/arch.img"
args = ["-nodefaults"]
}
// service {
// port = "ssh"
// }
artifact {
source = "http://localhost:8000/output/arch.img"
}
}
}
}