This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora.json
68 lines (68 loc) · 2.05 KB
/
fedora.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
{
"variables": {
"iso_url": "https://mirror.aarnet.edu.au/pub/fedora/linux/releases/31/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-31-1.9.iso",
"iso_checksum": "559e82173d44d5500739d473a32e2bd24a66a49f0034020f9f86c9d5da6a2c61",
"iso_checksum_type": "sha256",
"qemu_binary": "qemu-system-x86_64",
"disk_size": "40960",
"memory_size": "4096",
"cpus": "4",
"vm_name":"fedora-31-libvirt",
"headless":"true"
},
"builders": [
{
"type": "qemu",
"accelerator": "kvm",
"iso_url": "{{user `iso_url`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"headless":"{{user `headless`}}",
"vm_name": "{{user `vm_name`}}",
"cpus": "{{ user `cpus`}}",
"memory": "{{ user `memory_size`}}",
"qemu_binary": "{{ user `qemu_binary`}}",
"http_directory": "http",
"format": "qcow2",
"disk_size": "{{user `disk_size`}}",
"disk_interface": "virtio",
"disk_compression": "true",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "120m",
"boot_wait": "5s",
"boot_command": [
"<up><tab> ip=dhcp inst.cmdline inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg<enter>"
],
"shutdown_command": "echo vagrant | sudo -S poweroff",
"qemuargs": [
["--cpu", "host"],
["-vga", "qxl"]
]
}
],
"provisioners": [
{
"type": "shell",
"expect_disconnect": true,
"execute_command": "echo vagrant | sudo -S bash {{.Path}}",
"scripts": [
"scripts/common/update.sh",
"scripts/common/install.sh",
"scripts/common/sshd.sh",
"scripts/common/vagrant.sh",
"scripts/fedora/custom.sh",
"scripts/common/cleanup.sh",
"scripts/common/minimize.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"output": "builds/{{user `vm_name`}}.box",
"vagrantfile_template": "Vagrantfile.template",
"keep_input_artifact": true
}
]
}