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 /README.md | |
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 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -20,3 +20,9 @@ Depends on *setup-dev-tools* role (see dracut-initramfs-builder/meta/main.yml). ## Usage Use the provided 'build-dracut-initramfs.yml' playbook for the ansible provisioner in your packer template. +You can use an already created qcow2 image, instead of always generating new packer images. See *run-playbook-only.json* +for a sample packer template to use an existing qcow2 image and provision them with our playbook. +The template requires the variable 'image_path' to be set, which needs to be the path of the qcow2 image. +If it was generated by packer and the manifest was created, you can simply extract the image path from that: + packer build -var-file=base.json -only=qemu -var='image_path='"$(jq -r '.builds[0].files[0].name' < manifest.json)"'' test.json + |