-
Notifications
You must be signed in to change notification settings - Fork 3
/
monarc.json
78 lines (78 loc) · 2.66 KB
/
monarc.json
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"builders": [
{
"boot_wait": "5s",
"boot_command": [
"c<wait>",
"linux /casper/vmlinuz --- autoinstall ds=\"nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/\"",
"<enter><wait>",
"initrd /casper/initrd",
"<enter><wait>",
"boot",
"<enter>"
],
"disk_size": "{{user `disk_size`}}",
"cpus": "{{user `cpus`}}",
"export_opts": [
"--manifest",
"--vsys", "0",
"--eulafile", "/tmp/LICENSE-MONARC",
"--description", "{{user `vm_description`}}",
"--version", "{{user `vm_version`}}"
],
"format": "ova",
"guest_os_type": "Ubuntu_64",
"http_directory": "http",
"http_port_max": 9011,
"http_port_min": 9001,
"iso_checksum": "sha256:5e38b55d57d94ff029719342357325ed3bda38fa80054f9330dc789cd2d43931",
"iso_url": "https://old-releases.ubuntu.com/releases/22.04/ubuntu-22.04.2-live-server-amd64.iso",
"shutdown_command": "sudo shutdown -P now",
"ssh_password": "{{user `ssh_pass`}}",
"ssh_username": "{{user `ssh_user`}}",
"ssh_port": 22,
"ssh_timeout": "30m",
"ssh_handshake_attempts": "100",
"type": "virtualbox-iso",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--natpf1", "ssh,tcp,,2222,0.0.0.0,22"],
["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"],
["modifyvm", "{{.Name}}", "--vram", "{{user `vram`}}"],
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"],
["modifyvm", "{{.Name}}", "--natpf1", "dashboard,tcp,,5000,0.0.0.0,5000"],
["modifyvm", "{{.Name}}", "--audio-driver", "none"],
["modifyvm", "{{.Name}}", "--usb", "off"],
["modifyvm", "{{.Name}}", "--graphicscontroller", "vmsvga"],
["modifyvm", "{{.Name}}", "--vrde", "off"]
],
"vm_name": "{{user `vm_name`}}_{{user `vm_version`}}@{{user `latest_commit`}}"
}
],
"post-processors": [
{
"checksum_types": ["sha1", "sha512"],
"type": "checksum"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `ssh_pass`}}' | {{ .Vars }} sudo -E -S sh '{{ .Path }}'",
"pause_before": "10s",
"script": "scripts/bootstrap.sh",
"type": "shell"
}
],
"variables": {
"cpus": "4",
"disk_size": "100000",
"latest_commit": "{{env `LATEST_COMMIT`}}",
"memory": "4096",
"ssh_user": "monarc",
"ssh_pass": "password",
"vm_description": "MONARC - Method for an Optimised aNAlysis of Risks by CASES.",
"vm_name": "MONARC",
"vm_version": "{{env `MONARC_VERSION`}}",
"vram": "64"
}
}