Add Fedora 23 Vagrant base boxes
[integration/packaging.git] / packer / templates / libvirt.json
1 {
2   "variables": {
3     "odl_version": null,
4     "os_name": null,
5     "os_version": null,
6     "iso_urls": null,
7     "iso_checksum": null,
8     "rpm_repo_file": null,
9     "rpm_repo_url": null
10   },
11   "builders": [
12     {
13       "type": "qemu",
14       "iso_urls": "{{ user `iso_urls` }}",
15       "iso_checksum": "{{ user `iso_checksum` }}",
16       "iso_checksum_type": "sha256",
17       "ssh_username": "vagrant",
18       "ssh_password": "vagrant",
19       "ssh_wait_timeout": "60m",
20       "shutdown_command": "sudo shutdown -P now",
21       "http_directory": ".",
22       "boot_command": [
23         "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/provision/{{ user `os_name` }}_kickstart.cfg<enter>"
24       ]
25     }
26   ],
27   "provisioners": [
28     {
29       "type": "shell",
30       "scripts":
31         [
32           "provision/config_vagrant.sh",
33           "provision/config_ansible_{{ user `os_name`}}.sh"
34         ]
35     },
36     {
37       "type": "ansible-local",
38       "playbook_file": "provision/install_odl.yml",
39       "extra_arguments": [
40         "--extra-vars",
41         "\"rpm_repo_file={{ user `rpm_repo_file` }}",
42         "rpm_repo_url={{ user `rpm_repo_url` }}\""
43       ]
44     }
45   ],
46   "post-processors": [
47     {
48       "type": "vagrant",
49       "compression_level": "9",
50       "output": "opendaylight-{{ user `odl_version` }}-{{ user `os_name` }}-{{ user `os_version` }}-libvirt.box"
51     }
52   ]
53 }