forked from bstoots/packer-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vyos-1.1.7-amd64.json
82 lines (82 loc) · 2.48 KB
/
vyos-1.1.7-amd64.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
{
"builders": [{
"type": "virtualbox-iso",
"guest_os_type": "Debian_64",
"iso_url": "{{user `mirror`}}/iso/release/1.1.7/vyos-1.1.7-amd64.iso",
"iso_checksum": "c40a889469e0eea43d92c73149f1058e3650863b",
"iso_checksum_type": "sha1",
"output_directory": "output-vyos-1.1.7-amd64",
"vm_name": "packer-vyos-1.1.7-amd64",
"disk_size": "{{user `disk_size`}}",
"headless": "{{user `headless`}}",
"boot_wait": "5s",
"boot_command": [
"<enter><wait10><wait10>",
"vyos<enter><wait>",
"vyos<enter><wait>",
"install system<enter><wait>",
"<enter><wait>",
"<enter><wait>",
"<enter><wait>",
"Yes<enter><wait>",
"<enter><wait10><wait10><wait10><wait10><wait10>",
"<enter><wait>",
"vagrant<enter><wait>",
"vagrant<enter><wait>",
"<enter><wait5>",
"reboot<enter><wait>",
"Yes<enter><wait10><wait10><wait10>",
"vyos<enter><wait>",
"vagrant<enter><wait>",
"configure<enter><wait>",
"set interfaces ethernet eth0 address dhcp<enter><wait>",
"set system login user vagrant authentication plaintext-password vagrant<enter><wait>",
"set system login user vagrant level admin<enter><wait>",
"set service ssh<enter><wait>",
"commit<enter><wait>",
"save<enter><wait>",
"exit<enter><wait>",
"exit<enter><wait5>",
"vagrant<enter><wait>",
"vagrant<enter><wait>",
"configure<enter><wait>",
"delete system login user vyos<enter><wait>",
"commit<enter><wait>",
"save<enter><wait>",
"exit<enter><wait>"
],
"shutdown_command": "sudo poweroff",
"ssh_wait_timeout": "60m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "{{user `memory`}}"],
["modifyvm", "{{.Name}}", "--cpus", "{{user `cpus`}}"]
]
}],
"provisioners": [{
"type": "shell",
"scripts": [
"scripts/vyos/repo.sh",
"scripts/vyos/init.sh",
"scripts/vyos/virtualbox.sh",
"scripts/vyos/vagrant.sh",
"scripts/common/sshd.sh",
"scripts/vyos/cleanup.sh",
"scripts/vyos/minimize.sh"
]
}],
"post-processors": [{
"type": "vagrant",
"compression_level": "{{user `compression_level`}}",
"output": "vyos-1.1.7-amd64.box"
}],
"variables": {
"compression_level": "6",
"cpus": "1",
"disk_size": "40000",
"headless": "false",
"memory": "512",
"mirror": "http://mirror.vyos.net"
}
}