summaryrefslogtreecommitdiffstats
path: root/debian-10.4-amd64.json
diff options
context:
space:
mode:
authorJonathan Bauer2020-06-04 15:02:35 +0200
committerJonathan Bauer2020-06-04 15:02:35 +0200
commit739d7b0393cefeed2500719f056b269f3e96e4ea (patch)
tree40b7020c844cfb6f268a64ebc38515c513e46ae5 /debian-10.4-amd64.json
parentubuntu-18.04-amd64.json: improve boot_command (diff)
downloadpacker-templates-739d7b0393cefeed2500719f056b269f3e96e4ea.tar.gz
packer-templates-739d7b0393cefeed2500719f056b269f3e96e4ea.tar.xz
packer-templates-739d7b0393cefeed2500719f056b269f3e96e4ea.zip
added debian-10.4-amd64 template
Diffstat (limited to 'debian-10.4-amd64.json')
-rw-r--r--debian-10.4-amd64.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/debian-10.4-amd64.json b/debian-10.4-amd64.json
new file mode 100644
index 0000000..26662ea
--- /dev/null
+++ b/debian-10.4-amd64.json
@@ -0,0 +1,50 @@
+{
+ "variables": {
+ "iso_base_url": "https://ftp.fau.de/debian-cd/current/amd64/iso-cd",
+ "iso_checksum_type": "sha256",
+ "vm_name": "debian-10.4-amd64",
+ "http_dir": "http",
+ "preseed_path": "debian-10.4/preseed.cfg",
+ "shutdown_command": "systemctl poweroff",
+ "ssh_password": "{{ env `ROOTPW` }}"
+ },
+ "builders": [{
+ "type": "qemu",
+ "accelerator": "kvm",
+ "iso_url": "{{ user `iso_base_url` }}/debian-10.4.0-amd64-netinst.iso",
+ "iso_checksum_url": "{{ user `iso_base_url` }}/SHA256SUMS",
+ "iso_checksum_type": "{{ user `iso_checksum_type` }}",
+ "output_directory": "{{ user `output_directory` }}",
+ "vm_name": "{{ user `vm_name` }}",
+ "disk_size": "{{ user `disk_size` }}",
+ "format": "qcow2",
+ "headless": "{{ user `headless` }}",
+ "boot_wait": "5s",
+ "ssh_timeout": "{{user `ssh_timeout`}}",
+ "ssh_username": "{{ user `ssh_username` }}",
+ "ssh_password": "{{ user `ssh_password` }}",
+ "shutdown_command": "{{ user `shutdown_command` }}",
+ "http_directory": "{{ user `http_dir` }}",
+ "boot_command": [
+ "<esc><wait>",
+ "install ",
+ "initrd=/install/initrd.gz ",
+ "auto=true ",
+ "passwd/root-password={{ user `ssh_password` }} ",
+ "passwd/root-password-again={{ user `ssh_password` }} ",
+ "debconf/priority=critical ",
+ "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `preseed_path` }} ",
+ "<enter>"
+ ],
+ "qemuargs": [
+ ["-cpu", "host"],
+ ["-m", "{{user `memory`}}"],
+ ["-smp", "{{user `cpus`}}"]
+ ]
+ }],
+ "provisioners": [{
+ "type": "ansible",
+ "playbook_file": "{{ user `playbook` }}",
+ "extra_arguments": "{{ user `extra_ansible_args` }}"
+ }]
+}