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
Missing metadata.json (Packer (push) -> ATLAS (build) -> Vagrant (download)) #2090
Comments
+1 Having the same issue at the moment. Box builds perfectly but on
Another thing that I noticed was that it's impossible to use a user variable inside the metadata fields? This failed to work:
|
Hello Please note there is a double array on the post processor in the example: https://github.com/hashicorp/atlas-packer-vagrant-tutorial/blob/master/template.json#L87-L112 So this should be:
|
Thank you @kikitux ! Fixing the double array made the build succeed on my end. |
@stevenrombauts no problem. As you found, at the moment the version can't be a variable. what you can do, is leave that out, and packer push will generate one. |
Hi @tobiasbaehr @stevenrombauts @kikitux We actually just added interpolation in all stanza of Packer, so this should work now. We still need to update Packer on the Atlas side, but it will work locally 😄 |
@kikitux @sethvargo Great news, thanks for the heads-up! :) |
yes double array works. But why is there a double array? And why it works with:
|
Fixed! @tobiasbaehr Please see the section post-processor chains (should be in the post-processor section, just the general section) on the docs. |
The double array is required if you want to feed a post-processor into another post-processor. A typical use case is
with the double array you ensure vagrant box is feeded into upload to atlas. in your example, the vagrant post-processor alone, will create a local vagrant box, that's what you run locally. |
- Ref: (Missing metadata.json (Packer (push) -> ATLAS (build) -> Vagrant (download)))[hashicorp/packer#2090]
Hi all, |
@lylianmeyemezu Please send an email to the packer mailing list with your packer template for review. You are commenting on a closed issue. |
Oups...sorry |
for more details, see: hashicorp/packer#2090
* [Missing metadata.json (Packer (push) -> ATLAS (build) -> Vagrant (download)) · Issue #2090 · mitchellh/packer](hashicorp/packer#2090)
hashicorp/packer#2090 says we should use double array.
Atlas builds the vagrant.box, but when I try to use it, vagrant tell me that there is no metadata.json.
My tpl:
Terminal output:
And btw I do not find the options for artifact_type. And the "Delete" button on Atlas (
https://atlas.hashicorp.com/VENDOR/boxes/BOXNAME/settings
) do not delete my boxes or packer tpl configs it just hide it from the boxes/configs listhttps://atlas.hashicorp.com/vagrant
. I can unarchive it again to the frontend list. And I believe this not what we want. ;-)The text was updated successfully, but these errors were encountered: