CSIT-727 Add the tcpdump application into the VIRL image
[csit.git] / resources / tools / disk-image-builder / centos / centos-7.3-1611.json
1 {
2   "_c": "CentOS-7 ISO URL at the time of creation of this file (08/2017)",
3   "_c": "was http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso.",
4   "_c": "",
5   "variables": {
6     "release": null,
7     "output_dir": null,
8     "temp_dir": null,
9     "atlas_token": "{{env `ATLAS_TOKEN`}}",
10     "virl_user": "{{env `VIRL_USER`}}",
11     "virl_password": "{{env `VIRL_PASSWORD`}}"
12   },
13   "builders": [
14     {
15       "name": "{{user `release`}}-virtualbox",
16       "type": "virtualbox-iso",
17       "guest_os_type": "RedHat_64",
18       "iso_url": "http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso",
19       "iso_checksum": "c93c4a9755ebff419ac0a4d5052ed1f8b6fb84f9",
20       "iso_checksum_type": "sha1",
21       "output_directory": "{{user `output_dir`}}",
22       "ssh_username": "root",
23       "ssh_password": "csit",
24       "ssh_wait_timeout": "30m",
25       "disk_size": "4096",
26       "shutdown_command": "echo 'packer' | sudo -S /sbin/halt -h -p",
27       "http_directory": "html",
28       "iso_target_path" : "build/centos-7.3-1611.iso",
29       "headless": "true",
30       "boot_command":
31         [
32           "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
33         ]
34     },
35     {
36       "name": "{{user `release`}}-qemu",
37       "type": "qemu",
38       "iso_url": "http://buildlogs.centos.org/rolling/7/isos/x86_64/CentOS-7-x86_64-Minimal.iso",
39       "iso_checksum": "c93c4a9755ebff419ac0a4d5052ed1f8b6fb84f9",
40       "iso_checksum_type": "sha1",
41       "output_directory": "{{user `output_dir`}}",
42       "ssh_username": "root",
43       "ssh_password": "csit",
44       "ssh_wait_timeout": "30m",
45       "disk_size": "4096",
46       "shutdown_command": "echo 'packer' | sudo -S /sbin/halt -h -p",
47       "http_directory": "html",
48       "iso_target_path" : "build/centos-7.3-1611.iso",
49       "headless": "true",
50       "boot_command":
51         [
52           "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
53         ]
54     }
55   ],
56   "provisioners": [
57     {
58       "type": "file",
59       "source": "{{ user `temp_dir`}}",
60       "destination": "/root"
61     },
62     {
63       "type": "shell",
64       "script": "scripts-remote/post-install.sh"
65     },
66     {
67       "type": "shell",
68       "only": ["{{user `release`}}-qemu"],
69       "script": "scripts-remote/serial-console-centos-7-1511.sh"
70     },
71     {
72       "type": "shell",
73       "only": ["{{user `release`}}-virtualbox"],
74       "script": "scripts-remote/vagrant-user.sh"
75     },
76     {
77       "type": "shell",
78       "only": ["{{user `release`}}-virtualbox"],
79       "script": "scripts-remote/vagrant-guestadditions.sh"
80     },
81     {
82       "type": "shell",
83       "script": "scripts-remote/cleanup.sh"
84     }
85   ],
86   "post-processors": [
87     {
88       "type": "vagrant",
89       "only": ["{{user `release`}}-virtualbox"],
90       "keep_input_artifact": true
91     },
92     {
93       "type": "shell-local",
94       "only": ["{{user `release`}}-qemu"],
95       "script": "scripts-local/upload-image-to-virl.sh",
96       "keep_input_artifact": true,
97       "environment_vars":
98         [
99           "VIRL_USER={{user `virl_user`}}",
100           "VIRL_PASSWORD={{user `virl_password`}}",
101           "VIRL_IMAGE_SUBTYPE=server",
102           "VIRL_IMAGE_NAME={{user `release`}}"
103         ]
104      }
105   ]
106 }