Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DownloadDir is not implemented for packer-builder-qemu-chroot #3

Open
sfuerte opened this issue Aug 10, 2021 · 0 comments
Open

DownloadDir is not implemented for packer-builder-qemu-chroot #3

sfuerte opened this issue Aug 10, 2021 · 0 comments

Comments

@sfuerte
Copy link

sfuerte commented Aug 10, 2021

Is it possible to implement the directory copy?

Having the following config with fail with the subject error:

{
    "builders": [{
        "name": "hardened",
        "type": "qemu-chroot",
        "source_image": "{{ user `base_image` }}",
        "output_directory": "{{ user `target_image_dir` }}/output/",
        "image_name": "hardened-base-{{ user `version` }}.qcow2",
        "mount_path": "{{ user `working_folder` }}/mnt"
    }],
    "provisioners": [{
            "type": "ansible",
            "playbook_file": "{{ user `working_folder` }}/hardened-base/packer-build.yml",
            "inventory_file": "{{ user `working_folder` }}/mnt,",
            "groups": ["project"],
            "extra_arguments": [
                "--connection=chroot",
                "{{ user `ansible_verbose` }}",
                "--extra-vars",
                "version={{ user `version` }}"
            ]
        },
        {
            "type": "file",
            "sources": "/tmp/mydir/",
            "destination": "{{ user `working_folder` }}/mydir/",
            "direction": "download"
        },

the error:

==> Some builds didn't complete successfully and had errors:
--> hardened: DownloadDir is not implemented for packer-builder-qemu-chroot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant