Add "headless" variable for vmware and qemu.

This commit is contained in:
Michael Ledin 2017-03-04 15:38:56 +03:00 committed by Aaron Bull Schaefer
parent f06bdf5359
commit bb83901361
2 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
output/*.box
output-qemu/*
packer_cache

View file

@ -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": [