-
Notifications
You must be signed in to change notification settings - Fork 0
/
net-next-atlas.json
89 lines (89 loc) · 2.77 KB
/
net-next-atlas.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
{
"variables": {
"cpu_cores": "1",
"memory": "2048",
"disk_size": "10000",
"headless": "true",
"iso_url": "http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-server-amd64.iso",
"iso_checksum": "a3b345908a826e262f4ea1afeb357fd09ec0558cf34e6c9112cead4bb55ccdfb",
"iso_checksum_type": "sha256",
"ssh_username": "vagrant",
"ssh_password": "vagrant"
},
"builders": [
{
"name": "libvirt",
"vm_name": "ubuntu-1404-libvirt",
"type": "qemu",
"format": "qcow2",
"disk_interface": "virtio",
"accelerator": "kvm",
"qemuargs": [["-m", "{{user `memory`}}M"],
["-smp", "{{user `cpu_cores`}}"],
["-machine", "type=pc,accel=kvm"],
["-device", "virtio-net-pci,netdev=user.0"]],
"disk_size": "{{user `disk_size`}}",
"iso_url": "{{user `iso_url`}}",
"headless": "{{user `headless`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"ssh_username": "{{user `ssh_username`}}",
"ssh_password": "{{user `ssh_password`}}",
"ssh_wait_timeout": "60m",
"http_directory" : "preseed",
"boot_command" : [
"<esc><esc><enter><wait>",
"/install/vmlinuz noapic ",
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed_libvirt.cfg ",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
"hostname=ubuntu ",
"fb=false debconf/frontend=noninteractive ",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
"keyboard-configuration/variant=USA console-setup/ask_detect=false ",
"initrd=/install/initrd.gz -- <enter>"
],
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now"
}
],
"provisioners": [
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"type": "shell",
"script": "scripts/vagrant.sh"
},
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"type": "shell",
"script": "scripts/net-next.sh"
},
{
"execute_command": "echo 'vagrant' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"type": "shell",
"script": "scripts/go.sh"
},
{
"execute_command": "echo 'vagrant' | {{ .Vars }} sudo -E -S bash '{{ .Path }}'",
"type": "shell",
"script": "scripts/cleanup.sh"
}
],
"post-processors": [
[{
"type": "vagrant",
"compression_level": 9,
"keep_input_artifact": true,
"output": "ubuntu-1404-{{.BuildName}}.box"
},
{
"type": "atlas",
"only": ["libvirt"],
"artifact": "tgraf/net-next",
"artifact_type": "vagrant.box",
"metadata": {
"provider": "libvirt",
"version": "0.0.1",
"description": "Snapshot of net-next kernel"
}
}]
]
}