diff options
author | Jonathan Bauer | 2017-05-17 18:12:33 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-05-17 18:12:33 +0200 |
commit | c6b6749611deea14cdab0c3b165d4517a6c61130 (patch) | |
tree | de4d76ed1e8f13b6e187946dc1f66c2ab93833b1 | |
parent | til the submodule stuff is done, a few hints how to use it (diff) | |
download | ansible-dracut-c6b6749611deea14cdab0c3b165d4517a6c61130.tar.gz ansible-dracut-c6b6749611deea14cdab0c3b165d4517a6c61130.tar.xz ansible-dracut-c6b6749611deea14cdab0c3b165d4517a6c61130.zip |
added support for ROOTPW
-rw-r--r-- | run-playbook-only.json | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/run-playbook-only.json b/run-playbook-only.json index 481b959..ab52fc5 100644 --- a/run-playbook-only.json +++ b/run-playbook-only.json @@ -1,25 +1,27 @@ { - "builders": [{ - "type": "qemu", - "iso_url": "{{ user `image_path` }}", - "iso_checksum_type": "none", - "output_directory": "output-{{ timestamp }}", - "vm_name": "packer-{{ build_name }}", - "disk_image": "true", - "format": "qcow2", - "headless": "{{ user `headless` }}", - "ssh_timeout": "{{ user `ssh_timeout` }}", - "ssh_username": "{{ user `ssh_username` }}", - "ssh_password": "{{ user `ssh_password` }}", - "shutdown_command": "systemctl poweroff", - "qemuargs": [ - ["-m", "{{ user `memory` }}"], - ["-smp", "{{ user `cpus` }}"] - ] - }], - "provisioners": [{ - "type": "ansible", - "playbook_file": "{{ template_dir }}/build-dracut-initramfs.yml", - "extra_arguments": [ "-vvv" ] - }] + "variables": { + "ssh_password": "{{ env `ROOTPW` }}" + }, + "builders": [{ + "type": "qemu", + "iso_url": "{{ user `image_dir` }}/{{ user `image_name` }}", + "iso_checksum_type": "none", + "output_directory": "output-{{ user `image_dir` }}", + "vm_name": "{{ user `vm_name` }}", + "disk_image": "true", + "format": "qcow2", + "headless": "{{ user `headless` }}", + "ssh_timeout": "{{ user `ssh_timeout` }}", + "ssh_username": "{{ user `ssh_username` }}", + "ssh_password": "{{ user `ssh_password` }}", + "shutdown_command": "systemctl poweroff", + "qemuargs": [ + ["-m", "{{ user `memory` }}"], + ["-smp", "{{ user `cpus` }}"] + ] + }], + "provisioners": [{ + "type": "ansible", + "playbook_file": "{{ template_dir }}/{{ user `playbook` }}" + }] } |