diff options
author | Jonathan Bauer | 2017-04-07 14:44:45 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-04-07 14:44:45 +0200 |
commit | 2ecb5d98fe9d5bc7b98913bb60ce196a2366a531 (patch) | |
tree | c02ff7157b61d5acb4213bbe4c61488fd94f2800 /centos-7.3-x86_64.json | |
parent | added tl;dr section for quick start (diff) | |
download | packer-templates-2ecb5d98fe9d5bc7b98913bb60ce196a2366a531.tar.gz packer-templates-2ecb5d98fe9d5bc7b98913bb60ce196a2366a531.tar.xz packer-templates-2ecb5d98fe9d5bc7b98913bb60ce196a2366a531.zip |
root password now set via ROOTPW env var
Diffstat (limited to 'centos-7.3-x86_64.json')
-rw-r--r-- | centos-7.3-x86_64.json | 6 |
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>" ], |