diff options
author | Jonathan Bauer | 2017-03-17 17:32:53 +0100 |
---|---|---|
committer | Jonathan Bauer | 2017-03-17 17:32:53 +0100 |
commit | 51af68d6825129e5419343366b4f309061d9bbd0 (patch) | |
tree | 31cf8c85332d90effd1755daa4361327b43fa2df /run-playbook-only.json | |
parent | No ':' in descriptions :( (diff) | |
download | ansible-dracut-51af68d6825129e5419343366b4f309061d9bbd0.tar.gz ansible-dracut-51af68d6825129e5419343366b4f309061d9bbd0.tar.xz ansible-dracut-51af68d6825129e5419343366b4f309061d9bbd0.zip |
added sample packer template to call a playbook on ...
... an existing qcow2 image.
Diffstat (limited to 'run-playbook-only.json')
-rw-r--r-- | run-playbook-only.json | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/run-playbook-only.json b/run-playbook-only.json new file mode 100644 index 0000000..bc551a3 --- /dev/null +++ b/run-playbook-only.json @@ -0,0 +1,25 @@ +{ + "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": "build-dracut-initramfs.yml", + "extra_arguments": [ "-vvv" ] + }] +} |