user-vms: format job files
This commit is contained in:
parent
87e07e0fb5
commit
7ef2c378b0
4 changed files with 21 additions and 21 deletions
|
@ -14,21 +14,21 @@ job "admin-exams" {
|
||||||
task "ayden-vm" {
|
task "ayden-vm" {
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 12000
|
cpu = 12000
|
||||||
memory = 4096
|
memory = 4096
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact {
|
artifact {
|
||||||
source = "http://vm-resources.service.consul:8000/res/base-images/debian-12-genericcloud-amd64-30G.qcow2"
|
source = "http://vm-resources.service.consul:8000/res/base-images/debian-12-genericcloud-amd64-30G.qcow2"
|
||||||
destination = "local/ayden-vm.qcow2"
|
destination = "local/ayden-vm.qcow2"
|
||||||
mode = "file"
|
mode = "file"
|
||||||
}
|
}
|
||||||
|
|
||||||
driver = "qemu"
|
driver = "qemu"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image_path = "local/ayden-vm.qcow2"
|
image_path = "local/ayden-vm.qcow2"
|
||||||
accelerator = "kvm"
|
accelerator = "kvm"
|
||||||
drive_interface = "virtio"
|
drive_interface = "virtio"
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
@ -56,21 +56,21 @@ job "admin-exams" {
|
||||||
task "hypnoant-vm" {
|
task "hypnoant-vm" {
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 12000
|
cpu = 12000
|
||||||
memory = 4096
|
memory = 4096
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact {
|
artifact {
|
||||||
source = "http://vm-resources.service.consul:8000/res/base-images/debian-12-genericcloud-amd64-30G.qcow2"
|
source = "http://vm-resources.service.consul:8000/res/base-images/debian-12-genericcloud-amd64-30G.qcow2"
|
||||||
destination = "local/hypnoant-vm.qcow2"
|
destination = "local/hypnoant-vm.qcow2"
|
||||||
mode = "file"
|
mode = "file"
|
||||||
}
|
}
|
||||||
|
|
||||||
driver = "qemu"
|
driver = "qemu"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image_path = "local/hypnoant-vm.qcow2"
|
image_path = "local/hypnoant-vm.qcow2"
|
||||||
accelerator = "kvm"
|
accelerator = "kvm"
|
||||||
drive_interface = "virtio"
|
drive_interface = "virtio"
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
|
|
@ -13,21 +13,21 @@ job "bastion-vm" {
|
||||||
|
|
||||||
task "bastion-vm" {
|
task "bastion-vm" {
|
||||||
resources {
|
resources {
|
||||||
cpu = 12000
|
cpu = 12000
|
||||||
memory = 4096
|
memory = 4096
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact {
|
artifact {
|
||||||
source = "http://vm-resources.service.consul:8000/bastion/bastion-vm-latest.qcow2"
|
source = "http://vm-resources.service.consul:8000/bastion/bastion-vm-latest.qcow2"
|
||||||
destination = "local/bastion-vm.qcow2"
|
destination = "local/bastion-vm.qcow2"
|
||||||
mode = "file"
|
mode = "file"
|
||||||
}
|
}
|
||||||
|
|
||||||
driver = "qemu"
|
driver = "qemu"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image_path = "local/bastion-vm.qcow2"
|
image_path = "local/bastion-vm.qcow2"
|
||||||
accelerator = "kvm"
|
accelerator = "kvm"
|
||||||
drive_interface = "virtio"
|
drive_interface = "virtio"
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
|
|
@ -14,21 +14,21 @@ job "distro-vm" {
|
||||||
task "distro-vm" {
|
task "distro-vm" {
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 12000
|
cpu = 12000
|
||||||
memory = 4096
|
memory = 4096
|
||||||
}
|
}
|
||||||
|
|
||||||
artifact {
|
artifact {
|
||||||
source = "http://vm-resources.service.consul:8000/res/base-images/debian-12-genericcloud-amd64-30G.qcow2"
|
source = "http://vm-resources.service.consul:8000/res/base-images/debian-12-genericcloud-amd64-30G.qcow2"
|
||||||
destination = "local/distro-vm.qcow2"
|
destination = "local/distro-vm.qcow2"
|
||||||
mode = "file"
|
mode = "file"
|
||||||
}
|
}
|
||||||
|
|
||||||
driver = "qemu"
|
driver = "qemu"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image_path = "local/distro-vm.qcow2"
|
image_path = "local/distro-vm.qcow2"
|
||||||
accelerator = "kvm"
|
accelerator = "kvm"
|
||||||
drive_interface = "virtio"
|
drive_interface = "virtio"
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
|
|
@ -9,7 +9,7 @@ job "vm-resources" {
|
||||||
network {
|
network {
|
||||||
port "http" {
|
port "http" {
|
||||||
static = "8000"
|
static = "8000"
|
||||||
to = "80"
|
to = "80"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue