summaryrefslogtreecommitdiffstats
path: root/centos-7.3-x86_64.json
diff options
context:
space:
mode:
Diffstat (limited to 'centos-7.3-x86_64.json')
-rw-r--r--centos-7.3-x86_64.json6
1 files changed, 5 insertions, 1 deletions
diff --git a/centos-7.3-x86_64.json b/centos-7.3-x86_64.json
index 28277b8..7248dd0 100644
--- a/centos-7.3-x86_64.json
+++ b/centos-7.3-x86_64.json
@@ -6,7 +6,8 @@
"vm_name": "packer-centos-x86_64",
"http_dir": "http",
"kickstart_path": "centos-7.3/anaconda-ks.cfg",
- "shutdown_command": "systemctl poweroff"
+ "shutdown_command": "systemctl poweroff",
+ "ssh_password": "{{ env `ROOTPW` }}"
},
"builders": [{
"type": "qemu",
@@ -23,6 +24,7 @@
"boot_command": [
"<esc><wait>",
"linux inst.gpt biosdevname=0 net.ifnames=0 ",
+ "rootpw={{ user `ssh_password` }} ",
"inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart_path` }}",
"<enter>"
],
@@ -49,6 +51,7 @@
"boot_command": [
"<esc><wait>",
"linux inst.gpt biosdevname=0 net.ifnames=0 ",
+ "rootpw={{ user `ssh_password` }} ",
"inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart_path` }}",
"<enter>"
],
@@ -75,6 +78,7 @@
"boot_command": [
"<esc><wait>",
"linux inst.gpt biosdevname=0 net.ifnames=0 ",
+ "rootpw={{ user `ssh_password` }} ",
"inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart_path` }}",
"<enter>"
],