Update disk-image-builder scripts to allow IPv6
[csit.git] / resources / tools / disk-image-builder / ubuntu / listmaker / ubuntu-16.04.1.json
1 {
2   "_c": "Ubuntu 16.04.1 ISO URL at the time of creation of this file (10/2016)",
3   "_c": "was http://releases.ubuntu.com/16.04.1/ubuntu-16.04.1-server-amd64.iso .",
4   "_c": "",
5   "_c": "If and when 16.04.1 becomes superseded, this URL will likely change",
6   "_c": "to:",
7   "_c": "http://old-releases.ubuntu.com/releases/xenial/ubuntu-16.04.1-server-amd64.iso",
8   "variables": {
9     "release": null,
10     "outputdir": null,
11     "virl_user": "{{env `VIRL_USER`}}",
12     "virl_password": "{{env `VIRL_PASSWORD`}}"
13   },
14   "builders": [
15     {
16       "name": "{{user `release`}}",
17       "type": "qemu",
18       "iso_url": "http://old-releases.ubuntu.com/releases/xenial/ubuntu-16.04.1-server-amd64.iso",
19       "iso_checksum": "d2d939ca0e65816790375f6826e4032f",
20       "iso_checksum_type": "md5",
21       "ssh_username": "root",
22       "ssh_password": "csit",
23       "shutdown_command": "echo 'packer' | shutdown -P now",
24       "disk_size": "4096",
25       "http_directory": "html",
26       "iso_target_path" : "build/ubuntu-16.04.1-server-amd64.iso",
27       "output_directory": "{{user `outputdir`}}",
28       "headless": "true",
29       "boot_wait": "30s",
30       "qemuargs": [
31        ],
32       "boot_command":
33         [
34           "<enter><wait>",
35           "<f6><esc>",
36           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
37           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
38           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
39           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
40           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
41           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
42           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
43           "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
44           "<bs><bs><bs>",
45           "/install/vmlinuz",
46           " auto",
47           " console-setup/ask_detect=false",
48           " console-setup/layoutcode=us",
49           " console-setup/modelcode=pc105",
50           " debconf/frontend=noninteractive",
51           " debian-installer=en_US",
52           " fb=false",
53           " initrd=/install/initrd.gz",
54           " kbd-chooser/method=us",
55           " keyboard-configuration/layout=USA",
56           " keyboard-configuration/variant=USA",
57           " locale=en_US",
58           " netcfg/get_domain=vm",
59           " netcfg/get_hostname=qemu",
60           " grub-installer/bootdev=/dev/vda",
61           " noapic",
62           " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg --- ",
63           "<enter>"
64         ]
65     }
66   ],
67   "post-processors": [
68     {
69       "type": "shell-local",
70       "script": "scripts-local/upload-image-to-virl.sh",
71       "keep_input_artifact": true,
72       "environment_vars":
73         [
74           "VIRL_USER={{user `virl_user`}}",
75           "VIRL_PASSWORD={{user `virl_password`}}",
76           "VIRL_IMAGE_SUBTYPE=server",
77           "VIRL_IMAGE_NAME={{user `release`}}"
78         ]
79      }
80   ]
81 }