Helm charts for supporting clustering in ODL
[integration/packaging.git] / packer / templates / libvirt.json
index 65145f4146b1dcb6fc997626d17e1b2baf456eb2..3283436d029b0ef545fdaeaa3b02cdcf6677d26a 100644 (file)
@@ -1,53 +1,54 @@
 {
-  "variables": {
-    "odl_version": null,
-    "os_name": null,
-    "os_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": "60m",
-      "shutdown_command": "sudo shutdown -P now",
-      "http_directory": ".",
-      "boot_command": [
-        "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/provision/{{ user `os_name` }}_kickstart.cfg<enter>"
-      ]
-    }
-  ],
-  "provisioners": [
-    {
-      "type": "shell",
-      "scripts":
-        [
-          "provision/config_vagrant.sh",
-          "provision/config_ansible_{{ user `os_name`}}.sh"
-        ]
+    "variables": {
+        "odl_version": null,
+        "os_name": null,
+        "os_version": null,
+        "iso_urls": null,
+        "iso_checksum": null,
+        "rpm_repo_url": null
     },
-    {
-      "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` }}-{{ user `os_name` }}-{{ user `os_version` }}-libvirt.box"
-    }
-  ]
+    "builders": [
+        {
+            "type": "qemu",
+            "iso_urls": "{{ user `iso_urls` }}",
+            "iso_checksum": "{{ user `iso_checksum` }}",
+            "iso_checksum_type": "sha256",
+            "headless": "true",
+            "ssh_username": "vagrant",
+            "ssh_password": "vagrant",
+            "ssh_wait_timeout": "60m",
+            "shutdown_command": "sudo shutdown -P now",
+            "http_directory": ".",
+            "boot_command": [
+                "<tab>text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/provision/{{ user `os_name` }}_kickstart.cfg<enter>"
+            ]
+        }
+    ],
+    "provisioners": [
+        {
+            "type": "shell",
+            "scripts": [
+                "provision/config_vagrant.sh",
+                "provision/config_ansible_{{ user `os_name`}}.sh",
+                "provision/update_{{ user `os_name`}}.sh",
+                "provision/cleanup_{{ user `os_name`}}.sh",
+                "provision/minimize.sh"
+            ]
+        },
+        {
+            "type": "ansible-local",
+            "playbook_file": "provision/install_odl.yml",
+            "extra_arguments": [
+                "--extra-vars",
+                "\"rpm_repo_url={{ user `rpm_repo_url` }}\""
+            ]
+        }
+    ],
+    "post-processors": [
+        {
+            "type": "vagrant",
+            "compression_level": "9",
+            "output": "opendaylight-{{ user `odl_version` }}-{{ user `os_name` }}-{{ user `os_version` }}-libvirt.box"
+        }
+    ]
 }