-
Notifications
You must be signed in to change notification settings - Fork 5
/
Pi1.json
115 lines (115 loc) · 3.28 KB
/
Pi1.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
106
107
108
109
110
111
112
113
114
115
{
"builders": [
{
"accelerator": "tcg",
"boot_command": [
"<wait10>{{user `user_acc`}}<enter><wait>{{user `password_acc`}}<enter><wait5>apt-get moo<enter>"
],
"boot_wait": "1m",
"disk_interface": "virtio",
"disk_size": 5000,
"format": "qcow2",
"headless": false,
"iso_checksum": "{{user `sum_local`}}",
"iso_checksum_type": "md5",
"iso_url": "{{user `url_local`}}",
"net_device": "virtio-net",
"output_directory": "RasDerp",
"qemu_binary": "qemu-system-arm",
"qemuargs": [
[
"-m",
"256"
],
[
"-machine",
"versatilepb,accel=tcg"
],
[
"-device",
"e1000,netdev=user.0"
],
[
"-netdev",
"id=user.0,type=user"
],
[
"-hda",
"{{user `url_local`}}"
],
[
"-cpu",
"arm1176"
],
[
"-kernel",
"{{user `kernel`}}"
],
[
"-append",
"root=/dev/sda2 rw rootfstype=ext4"
],
[
"-net",
"nic,macaddr=00:16:3e:00:00:01"
],
[
"-net",
"user,hostfwd=tcp::2223-:22"
],
[
"-k",
"en-gb"
],
[
"-display",
"{{user `display`}}"
],
[
"-no-reboot"
]
],
"shutdown_command": "echo '{{user `password_acc`}}'|sudo reboot",
"ssh_host_port_max": 2230,
"ssh_password": "{{user `password_acc`}}",
"ssh_username": "{{user `user_acc`}}",
"ssh_wait_timeout": "30m",
"type": "qemu",
"vm_name": "Raspbian-Forged"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password_acc`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"scripts": [
"scripts/common/update&upgrade.sh",
"scripts/common/installSoftware.sh"
],
"type": "shell"
},
{
"destination": "~/client.rb",
"source": "files/client.rb",
"type": "file"
},
{
"destination": "~/validation.pem",
"source": "files/validation.pem",
"type": "file"
},
{
"script": "scripts/common/moveFiles.sh",
"type": "shell"
}
],
"variables": {
"password_acc": "raspberry",
"sum_global": "13e5b192154be6b198eb3747f38523ab",
"sum_local": "a9eab6f36cc52ac75cd7d363b54558e9",
"url_global": "http://vagrantimages.yrdci.fra.hybris.com/raspbian.img",
"url_local": "temporary",
"user_acc": "pi",
"display" : "none",
"kernel" : "kernel-3.16.5"
}
}