From 2ecb5d98fe9d5bc7b98913bb60ce196a2366a531 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 7 Apr 2017 14:44:45 +0200 Subject: root password now set via ROOTPW env var --- centos-7.3-x86_64.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'centos-7.3-x86_64.json') 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": [ "", "linux inst.gpt biosdevname=0 net.ifnames=0 ", + "rootpw={{ user `ssh_password` }} ", "inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart_path` }}", "" ], @@ -49,6 +51,7 @@ "boot_command": [ "", "linux inst.gpt biosdevname=0 net.ifnames=0 ", + "rootpw={{ user `ssh_password` }} ", "inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart_path` }}", "" ], @@ -75,6 +78,7 @@ "boot_command": [ "", "linux inst.gpt biosdevname=0 net.ifnames=0 ", + "rootpw={{ user `ssh_password` }} ", "inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{ user `kickstart_path` }}", "" ], -- cgit v1.2.3-55-g7522