f4c1a705451b75aa0f8f9cbefcf739a601271fc7
[csit.git] / resources / tools / disk-image-builder / ubuntu / listmaker / ubuntu-14.04.4.json
1 {
2   "_c": "Ubuntu 14.04.4 ISO URL at the time of creation of this file (05/2016)",
3   "_c": "was http://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso .",
4   "_c": "",
5   "_c": "If and when 14.04.4 becomes superseded, this URL will likely change",
6   "_c": "to:",
7   "_c": "http://old-releases.ubuntu.com/releases/14.04.4/ubuntu-14.04.4-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://releases.ubuntu.com/14.04/ubuntu-14.04.4-server-amd64.iso",
19       "iso_checksum": "2ac1f3e0de626e54d05065d6f549fa3a",
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-14.04.4-server-amd64.iso",
27       "output_directory": "{{user `outputdir`}}",
28       "headless": "true",
29       "boot_command":
30         [
31           "<esc><esc><enter><wait>",
32           "/install/vmlinuz noapic ",
33           "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg ",
34           "debian-installer=en_US auto locale=en_US kbd-chooser/method=us ",
35           "hostname=csit ",
36           "fb=false debconf/frontend=noninteractive ",
37           "keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
38           "keyboard-configuration/variant=USA console-setup/ask_detect=false ",
39           "initrd=/install/initrd.gz -- <enter>"
40         ]
41     }
42   ],
43   "post-processors": [
44     {
45       "type": "shell-local",
46       "script": "scripts-local/upload-image-to-virl.sh",
47       "keep_input_artifact": true,
48       "environment_vars":
49         [
50           "VIRL_USER={{user `virl_user`}}",
51           "VIRL_PASSWORD={{user `virl_password`}}",
52           "VIRL_IMAGE_SUBTYPE=server",
53           "VIRL_IMAGE_NAME={{user `release`}}"
54         ]
55      }
56   ]
57 }