+++ /dev/null
-{
- "variables": {
- "box_version": null,
- "docker_version": null,
- "docker_name": null
- },
- "builders": [
- {
- "type": "qemu",
- "iso_urls":
- [
- "http://mirrors.rit.edu/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
- "http://mirrors.usc.edu/pub/linux/distributions/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
- "http://centos.eecs.wsu.edu/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
- "http://mirror.lug.udel.edu/pub/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
- "http://mirror.cc.columbia.edu/pub/linux/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso"
- ],
- "iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
- "iso_checksum_type": "sha256",
- "ssh_username": "vagrant",
- "ssh_password": "vagrant",
- "ssh_wait_timeout": "20m",
- "shutdown_command": "sudo shutdown -P now",
- "http_directory": ".",
- "boot_command":
- [
- "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos_kickstart.cfg<enter>"
- ]
- },
- {
- "type": "virtualbox-iso",
- "guest_os_type": "RedHat_64",
- "iso_urls":
- [
- "http://mirrors.seas.harvard.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso",
- "http://bay.uchicago.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso",
- "http://mirror.vcu.edu/pub/gnu+linux/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso",
- "http://mirror.vtti.vt.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso",
- "http://mirror.clarkson.edu/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso"
- ],
- "iso_checksum": "7cf1ac8da13f54d6be41e3ccf228dc5bb35792f515642755ff4780d5714d4278",
- "iso_checksum_type": "sha256",
- "headless": "false",
- "ssh_username": "vagrant",
- "ssh_password": "vagrant",
- "ssh_wait_timeout": "20m",
- "shutdown_command": "sudo shutdown -P now",
- "http_directory": ".",
- "boot_command": [
- "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos_kickstart.cfg<enter>"
- ],
- "vboxmanage": [
- [
- "modifyvm",
- "{{ .Name }}",
- "--memory",
- "1024"
- ],
- [
- "modifyvm",
- "{{ .Name }}",
- "--cpus",
- "2"
- ]
- ]
- },
- {
- "type": "docker",
- "image": "centos:7.1.1503",
- "pull": false,
- "commit": true
- }
- ],
- "provisioners": [
- {
- "type": "shell",
- "scripts":
- [
- "config_vagrant.sh",
- "config_ansible.sh"
- ],
- "only":
- [
- "qemu"
- ]
- },
- {
- "type": "shell",
- "scripts":
- [
- "config_virtualbox.sh",
- "config_vagrant.sh",
- "config_ansible.sh"
- ],
- "only":
- [
- "virtualbox-iso"
- ]
- },
- {
- "type": "shell",
- "scripts":
- [
- "config_docker.sh",
- "config_ansible.sh"
- ],
- "only":
- [
- "docker"
- ]
- },
- {
- "type": "ansible-local",
- "playbook_file": "install_odl.yml"
- }
- ],
- "post-processors": [
- {
- "type": "vagrant",
- "compression_level": "9",
- "output": "opendaylight-{{ user `box_version` }}-centos-7.2.1511-libvirt.box",
- "only": ["qemu"]
- },
- {
- "type": "vagrant",
- "compression_level": "9",
- "output": "opendaylight-{{ user `box_version` }}-centos-1503-virtualbox.box",
- "only": ["virtualbox-iso"]
- },
- {
- "type": "docker-tag",
- "repository": "{{ user `docker_name` }}",
- "tag": "{{ user `docker_version` }}",
- "force": true,
- "only": ["docker"]
- }
- ]
-}
+++ /dev/null
-{
- "box_version": "4.0.0",
- "docker_version": "4.0.0",
- "docker_name": "opendaylight/odl"
-}
sudo yum install -y epel-release
# Install Ansible, required for Packer's ansible-local provisioner
-# Recent versions of Ansible require ansible-playbook
# Git is required by the ansible-galaxy tool when installing roles
-sudo yum install -y ansible ansible-playbook git
+sudo yum install -y ansible git
# Install the latest release of ODL's Ansible role from Ansible Galaxy
# The `ansible-galaxy` tool was installed by Ansible's RPM
--- /dev/null
+{
+ "variables": {
+ "odl_version": null,
+ "centos_version": null,
+ "docker_repo": null,
+ "rpm_repo_file": null,
+ "rpm_repo_url": null
+ },
+ "builders": [
+ {
+ "type": "docker",
+ "image": "centos:{{ user `centos_version` }}",
+ "pull": false,
+ "commit": true
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "scripts":
+ [
+ "provision/config_docker.sh",
+ "provision/config_ansible.sh"
+ ]
+ },
+ {
+ "type": "ansible-local",
+ "playbook_file": "provision/install_odl.yml",
+ "extra_arguments": [
+ "--extra-vars",
+ "\"rpm_repo_file={{ user `rpm_repo_file` }}",
+ "rpm_repo_url={{ user `rpm_repo_url` }}\""
+ ]
+ }
+ ],
+ "post-processors": [
+ {
+ "type": "docker-tag",
+ "repository": "{{ user `docker_repo` }}",
+ "tag": "{{ user `odl_version` }}",
+ "force": true,
+ }
+ ]
+}
--- /dev/null
+{
+ "variables": {
+ "odl_version": null,
+ "centos_version": null,
+ "iso_urls": null,
+ "iso_checksum": null,
+ "rpm_repo_file": null,
+ "rpm_repo_url": null
+ },
+ "builders": [
+ {
+ "type": "qemu",
+ "iso_urls": "{{ user `iso_urls` }}",
+ "iso_checksum": "{{ user `iso_checksum` }}",
+ "iso_checksum_type": "sha256",
+ "ssh_username": "vagrant",
+ "ssh_password": "vagrant",
+ "ssh_wait_timeout": "20m",
+ "shutdown_command": "sudo shutdown -P now",
+ "http_directory": ".",
+ "boot_command":
+ [
+ "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/provision/centos_kickstart.cfg<enter>"
+ ]
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "scripts":
+ [
+ "provision/config_vagrant.sh",
+ "provision/config_ansible.sh"
+ ]
+ },
+ {
+ "type": "ansible-local",
+ "playbook_file": "provision/install_odl.yml",
+ "extra_arguments": [
+ "--extra-vars",
+ "\"rpm_repo_file={{ user `rpm_repo_file` }}",
+ "rpm_repo_url={{ user `rpm_repo_url` }}\""
+ ]
+ }
+ ],
+ "post-processors": [
+ {
+ "type": "vagrant",
+ "compression_level": "9",
+ "output": "opendaylight-{{ user `odl_version` }}-centos-{{ user `centos_version` }}-libvirt.box"
+ }
+ ]
+}
--- /dev/null
+{
+ "variables": {
+ "odl_version": null,
+ "centos_version": null,
+ "docker_repo": null,
+ "rpm_repo_file": null,
+ "rpm_repo_url": null
+ },
+ "builders": [
+ {
+ "type": "virtualbox-iso",
+ "guest_os_type": "RedHat_64",
+ "iso_urls": "{{ user `iso_urls` }}",
+ "iso_checksum": "{{ user `iso_checksum` }}",
+ "iso_checksum_type": "sha256",
+ "headless": "false",
+ "ssh_username": "vagrant",
+ "ssh_password": "vagrant",
+ "ssh_wait_timeout": "20m",
+ "shutdown_command": "sudo shutdown -P now",
+ "http_directory": ".",
+ "boot_command": [
+ "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/provision/centos_kickstart.cfg<enter>"
+ ],
+ "vboxmanage": [
+ [
+ "modifyvm",
+ "{{ .Name }}",
+ "--memory",
+ "1024"
+ ],
+ [
+ "modifyvm",
+ "{{ .Name }}",
+ "--cpus",
+ "2"
+ ]
+ ]
+ }
+ ],
+ "provisioners": [
+ {
+ "type": "shell",
+ "scripts":
+ [
+ "provision/config_virtualbox.sh",
+ "provision/config_vagrant.sh",
+ "provision/config_ansible.sh"
+ ]
+ },
+ {
+ "type": "ansible-local",
+ "playbook_file": "provision/install_odl.yml",
+ "extra_arguments": [
+ "--extra-vars",
+ "\"rpm_repo_file={{ user `rpm_repo_file` }}",
+ "rpm_repo_url={{ user `rpm_repo_url` }}\""
+ ]
+ }
+ ],
+ "post-processors": [
+ {
+ "type": "vagrant",
+ "compression_level": "9",
+ "output": "opendaylight-{{ user `odl_version` }}-centos-{{ user `centos_version` }}-virtualbox.box"
+ }
+ ]
+}
--- /dev/null
+{
+ "odl_version": "3.4.0",
+ "centos_version": "7.2.1511",
+ "iso_urls": "http://mirrors.rit.edu/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
+ "iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
+ "docker_repo": "opendaylight/odl",
+ "rpm_repo_file": "opendaylight-34-release.repo",
+ "rpm_repo_url": "'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=rpm/example_repo_configs/opendaylight-34-release.repo'"
+}
--- /dev/null
+{
+ "odl_version": "4.0.0",
+ "centos_version": "7.2.1511",
+ "iso_urls": "http://mirrors.rit.edu/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
+ "iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
+ "docker_repo": "opendaylight/odl",
+ "rpm_repo_file": "opendaylight-40-release.repo",
+ "rpm_repo_url": "'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=rpm/example_repo_configs/opendaylight-40-release.repo'"
+}
--- /dev/null
+{
+ "odl_version": "4.1.0",
+ "centos_version": "7.2.1511",
+ "iso_urls": "http://mirrors.rit.edu/centos/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
+ "iso_checksum": "f90e4d28fa377669b2db16cbcb451fcb9a89d2460e3645993e30e137ac37d284",
+ "docker_repo": "opendaylight/odl",
+ "rpm_repo_file": "opendaylight-41-release.repo",
+ "rpm_repo_url": "'https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=rpm/example_repo_configs/opendaylight-41-release.repo'"
+}