-
Notifications
You must be signed in to change notification settings - Fork 34
/
base.json
105 lines (105 loc) · 3.32 KB
/
base.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"builders": [
{
"type": "virtualbox-iso",
"guest_os_type": "Ubuntu_64",
"iso_urls": "https://releases.ubuntu.com/22.04.3/ubuntu-22.04.3-live-server-amd64.iso",
"iso_checksum": "sha256:a4acfda10b18da50e2ec50ccaf860d7f20b389df8765611142305c0e911d16fd",
"output_directory": "vms/base",
"vm_name": "instant-sdr-base",
"disk_size": "50000",
"headless": "true",
"http_directory": ".",
"guest_additions_mode": "upload",
"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>"
],
"ssh_username": "sdr",
"ssh_password": "sdr",
"ssh_wait_timeout": "60m",
"shutdown_command": "sudo systemctl poweroff",
"format": "ova",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "4096"],
["modifyvm", "{{.Name}}", "--vram", "128"],
["modifyvm", "{{.Name}}", "--cpus", "4"],
["modifyvm", "{{.Name}}", "--natpf1", "guestssh,tcp,127.0.0.1,2222,,22"],
["modifyvm", "{{.Name}}", "--accelerate3d", "off"],
["modifyvm", "{{.Name}}", "--usb", "on"],
["modifyvm", "{{.Name}}", "--usbxhci", "on"],
["modifyvm", "{{.Name}}", "--clipboard", "bidirectional"],
["modifyvm", "{{.Name}}", "--audioout", "on"],
["modifyvm", "{{.Name}}", "--audioin", "on"],
["modifyvm", "{{.Name}}", "--graphicscontroller", "vmsvga"],
["modifyvm", "{{.Name}}", "--nat-localhostreachable1", "on"]
]
}],
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/init-base.sh"
]
},
{
"type": "file",
"source": "assets/wallpaper.png",
"destination": "Pictures/wallpaper.png"
},
{
"type": "file",
"source": "assets/zshrc",
"destination": ".zshrc"
},
{
"type": "file",
"source": "assets/zshenv",
"destination": ".zshenv"
},
{
"type": "file",
"source": "assets/terminator",
"destination": ".config/terminator/config"
},
{
"type": "file",
"source": "assets/UbuntuMono-Nerd-Font.ttf",
"destination": ".fonts/UbuntuMono-Nerd-Font.ttf"
},
{
"type": "file",
"source": "assets/vimrc",
"destination": ".vimrc"
},
{
"type": "file",
"source": "assets/zenburn.vim",
"destination": ".vim/colors/zenburn.vim"
},
{
"type": "file",
"source": "assets/gitconfig",
"destination": ".gitconfig"
},
{
"type": "shell",
"scripts": [
"scripts/setup-base.sh"
]
},
{
"type": "shell",
"scripts": [
"scripts/cleanup.sh"
],
"execute_command": "sudo -E bash '{{.Path}}'"
}
]
}