blob: 15db3121c232cc4829da3a2a4f7723f764f27e9a [file] [log] [blame]
Mike Marchetti1b64bd42018-06-13 09:21:40 -04001{
2 "provisioners": [
3 {
4 "type": "shell",
5 "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
6 "script": "scripts/install_packages.sh"
7 },
8 {
9 "type": "shell",
10 "execute_command": "echo 'vagrant' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
11 "script": "scripts/setup.sh"
12 },
13 {
14 "type": "file",
15 "source": "scripts/lxd-bridge",
16 "destination": "/tmp/lxd-bridge"
17 },
18 {
19 "type": "shell",
20 "script": "scripts/lxd-setup.sh"
21 },
22 {
23 "type": "shell",
Michael Marchetti79731f42018-07-10 18:07:12 +020024 "inline": ["echo 'vagrant' | sudo shutdown -r now"],
25 "expect_disconnect": "true"
26 },
27 {
28 "type": "shell",
29 "script": "scripts/juju-setup.sh",
30 "pause_before": "10s"
31 },
32 {
33 "type": "shell",
34 "script": "scripts/cleanup.sh"
Mike Marchetti1b64bd42018-06-13 09:21:40 -040035 }
36 ],
37 "builders": [
38 {
39 "type": "virtualbox-iso",
40 "boot_command": [
41 "<enter><wait><f6><esc><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
42 "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
43 "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
44 "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
45 "/install/vmlinuz<wait>",
46 " auto<wait>",
47 " console-setup/ask_detect=false<wait>",
48 " console-setup/layoutcode=us<wait>",
49 " console-setup/modelcode=pc105<wait>",
50 " debconf/frontend=noninteractive<wait>",
51 " debian-installer=en_US<wait>",
52 " fb=false<wait>",
53 " initrd=/install/initrd.gz<wait>",
54 " kbd-chooser/method=us<wait>",
55 " keyboard-configuration/layout=USA<wait>",
56 " keyboard-configuration/variant=USA<wait>",
57 " locale=en_US<wait>",
58 " netcfg/get_domain=vm<wait>",
59 " netcfg/get_hostname=vagrant<wait>",
60 " grub-installer/bootdev=/dev/sda<wait>",
61 " noapic<wait>",
62 " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
63 " -- <wait>",
64 "<enter><wait>"
65 ],
66 "boot_wait": "10s",
Michael Marchetti79731f42018-07-10 18:07:12 +020067 "disk_size": 20480,
Mike Marchetti1b64bd42018-06-13 09:21:40 -040068 "guest_os_type": "Ubuntu_64",
69 "headless": true,
70 "http_directory": "http",
71 "iso_urls": [
72 "iso/ubuntu-16.04.4-server-amd64.iso",
73 "http://releases.ubuntu.com/16.04/ubuntu-16.04.4-server-amd64.iso"
74 ],
75 "iso_checksum_type": "sha256",
76 "iso_checksum": "0a03608988cfd2e50567990dc8be96fb3c501e198e2e6efcb846d89efc7b89f2",
77 "ssh_username": "vagrant",
78 "ssh_password": "vagrant",
79 "ssh_port": 22,
80 "ssh_wait_timeout": "10000s",
81 "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now",
82 "guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
83 "virtualbox_version_file": ".vbox_version",
Michael Marchetti79731f42018-07-10 18:07:12 +020084 "output_directory": "jujubase-{{timestamp}}",
85 "vm_name": "xenial-jujubase",
Mike Marchetti1b64bd42018-06-13 09:21:40 -040086 "vboxmanage": [
87 [
88 "modifyvm",
89 "{{.Name}}",
90 "--memory",
91 "4096"
92 ],
93 [
94 "modifyvm",
95 "{{.Name}}",
96 "--cpus",
97 "2"
98 ]
99 ]
100 }
Michael Marchetti79731f42018-07-10 18:07:12 +0200101 ],
102 "post-processors": [
103 {
104 "output": "jujubase-{{timestamp}}/{{.Provider}}-jujubase.box",
105 "type": "vagrant",
106 "keep_input_artifact": true
107 }
Mike Marchetti1b64bd42018-06-13 09:21:40 -0400108 ]
109}