Skip to content

Commit

Permalink
Make "qemuargs" parameter more readable in Packer json templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed Oct 5, 2018
1 parent 2e1ce72 commit a4c37f2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion my_centos-7.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",

"accelerator": "kvm",
"qemuargs": [[ "-m", "{{ user `memory` }}" ], [ "-smp", "{{ user `cpus` }}" ]],
"qemuargs": [
[ "-m", "{{ user `memory` }}" ],
[ "-smp", "{{ user `cpus` }}" ]
],
"boot_wait": "5s",
"boot_command":
[
Expand Down
5 changes: 4 additions & 1 deletion my_ubuntu-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",

"accelerator": "kvm",
"qemuargs": [[ "-m", "{{ user `memory` }}" ], [ "-smp", "{{ user `cpus` }}" ]],
"qemuargs": [
[ "-m", "{{ user `memory` }}" ],
[ "-smp", "{{ user `cpus` }}" ]
],
"boot_wait": "5s",
"boot_command":
[
Expand Down
5 changes: 4 additions & 1 deletion ubuntu-desktop.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",

"accelerator": "kvm",
"qemuargs": [[ "-m", "{{ user `memory` }}" ], [ "-smp", "{{ user `cpus` }}" ]],
"qemuargs": [
[ "-m", "{{ user `memory` }}" ],
[ "-smp", "{{ user `cpus` }}" ]
],
"boot_wait": "5s",
"boot_command":
[
Expand Down
5 changes: 4 additions & 1 deletion ubuntu-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now",

"accelerator": "kvm",
"qemuargs": [[ "-m", "{{ user `memory` }}" ], [ "-smp", "{{ user `cpus` }}" ]],
"qemuargs": [
[ "-m", "{{ user `memory` }}" ],
[ "-smp", "{{ user `cpus` }}" ]
],
"boot_wait": "5s",
"boot_command":
[
Expand Down

0 comments on commit a4c37f2

Please sign in to comment.