packer: support different Debian + grml-debootstrap releases
[grml-debootstrap.git] / packer / debian64.json
diff --git a/packer/debian64.json b/packer/debian64.json
new file mode 100644 (file)
index 0000000..7d9c48d
--- /dev/null
@@ -0,0 +1,69 @@
+{
+  "variables": {
+    "grml_type": "grml64-full",
+    "grml_version": "2014.11",
+    "grml_iso_checksum": "120bfa48b096691797a73fa2f464c7c71fac1587",
+    "debian_version": "jessie",
+    "grml_debootstrap_version": "latest"
+  },
+
+  "builders": [
+  {
+    "type": "virtualbox-iso",
+    "vm_name": "{{ user `grml_type` }}_{{ user `grml_version` }}",
+    "guest_os_type": "Debian_64",
+    "hard_drive_interface": "sata",
+    "iso_url": "http://download.grml.org/{{ user `grml_type` }}_{{ user `grml_version` }}.iso",
+    "iso_checksum": "{{ user `grml_iso_checksum` }}",
+    "iso_checksum_type": "sha1",
+    "ssh_wait_timeout": "20m",
+    "ssh_username": "root",
+    "ssh_password": "grml",
+    "output_directory": "{{ user `grml_type` }}_output",
+    "headless": false,
+    "boot_wait": "5s",
+    "boot_command": [
+      "<tab> ssh=grml <enter>"
+    ],
+    "shutdown_command": "shutdown -h now"
+  }
+  ],
+    "provisioners": [
+    {
+      "type": "file",
+      "source": "fake-uname.so",
+      "destination": "/tmp/fake-uname.so"
+    },
+    {
+      "type": "file",
+      "source": "debian64.bats",
+      "destination": "/tmp/debian64.bats"
+    },
+    {
+      "type": "file",
+      "source": "../grml-debootstrap",
+      "destination": "/tmp/grml-debootstrap"
+    },
+    {
+      "type": "shell",
+      "environment_vars": [
+       "GRML_DEBOOTSTRAP_VERSION={{ user `grml_debootstrap_version` }}",
+       "DEBIAN_VERSION={{ user `debian_version` }}"
+      ],
+      "scripts": [
+        "debian64_provision.sh"
+        ]
+    }
+  ],
+    "post-processors": [
+    {
+      "type": "vagrant",
+      "compression_level": 5,
+      "override": {
+        "virtualbox": {
+          "output": "debian64_{{ user `debian_version` }}.box"
+        }
+      }
+    }
+  ]
+}