-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjob.nomad.hcl
More file actions
46 lines (37 loc) · 1.05 KB
/
job.nomad.hcl
File metadata and controls
46 lines (37 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
job "virt-example" {
group "virt-group" {
count = 1
task "virt-task" {
identity {
env = true
file = true
}
template {
data = <<EOH
Guest System
EOH
destination = "local/index.html"
}
driver = "virt"
artifact {
source = "http://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
destination = "local/focal-server-cloudimg-amd64.img"
mode = "file"
}
config {
image = "local/focal-server-cloudimg-amd64.img"
primary_disk_size = 26000
use_thin_copy = true
default_user_password = "password"
cmds = ["touch /home/ubuntu/file.txt"]
default_user_authorized_ssh_key = "ssh-ed25519 AAAAC3NzaC1lZDI..."
}
resources {
cores = 4
memory = 4000
}
}
}
}