From bb839013617dafb4f8106dba02e1dca7775f079b Mon Sep 17 00:00:00 2001 From: Michael Ledin Date: Sat, 4 Mar 2017 15:38:56 +0300 Subject: [PATCH] Add "headless" variable for vmware and qemu. --- .gitignore | 1 + arch-template.json | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e9ce979..58fb424 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ output/*.box +output-qemu/* packer_cache diff --git a/arch-template.json b/arch-template.json index bb2ebfe..deb1b9f 100644 --- a/arch-template.json +++ b/arch-template.json @@ -4,7 +4,8 @@ "iso_checksum_url": "https://mirrors.kernel.org/archlinux/iso/2017.01.01/sha1sums.txt", "iso_checksum_type": "sha1", "ssh_timeout": "20m", - "country": "US" + "country": "US", + "headless": "false" }, "builders": [ { @@ -69,7 +70,8 @@ "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_timeout": "{{ user `ssh_timeout` }}", - "shutdown_command": "sudo systemctl start poweroff.timer" + "shutdown_command": "sudo systemctl start poweroff.timer", + "headless" : "{{ user `headless`}}" }, { "type": "qemu", @@ -88,7 +90,8 @@ "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_timeout": "{{ user `ssh_timeout` }}", - "shutdown_command": "sudo systemctl start poweroff.timer" + "shutdown_command": "sudo systemctl start poweroff.timer", + "headless" : "{{ user `headless`}}" } ], "provisioners": [