Hello team, I have been trying to set up an in-house repository for vagrant boxes. However, have comes across some issues. I am using the packer's *vagrant-cloud* post-processor for uploading the box file to our Artifactory server hosted in house. "post-processors": [ [ { "type": "vagrant", "output": "ubuntu-16.box", "only": ["virtualbox"] }, { "type": "vagrant-cloud", "vagrant_cloud_url": "http://xyz/artifactory/api/vagrant/packer-virtualboxes", "access_token": "champa", "version": "{{user `image_version`}}", "box_tag": "ubuntu16" } ]
The packer process fails with 404 for the following: 2019/11/01 16:59:09 packer: 2019/11/01 16:59:09 Post-Processor Vagrant Cloud API GET: http://xyz/artifactory/api/vagrant/packer-virtualboxes/box/ubuntu16?access_token=ACCESS_TOKEN <http://vmbuild:appgvumxxb7wonvhyeatqbj...@artifactory.otenv.com/artifactory/api/vagrant/packer-virtualboxes/box/ubuntu18.04?access_token=ACCESS_TOKEN> The actual URL listed under "vagrant_cloud_url" in packer.json is "http://xyz/artifactory/api/vagrant/packer-virtualboxes". However, when the packer build runs it tries to do a GET call on http://xyz/artifactory/api/vagrant/packer-virtualboxes/*box*/ubuntu16. Not sure why *box* keyword is added after the actual url due to which the query fails. I tried to do a curl call on http://xyz/artifactory/api/vagrant/packer-virtualboxes/ubuntu16 which works fine. There is another problem with access_token. The documentation says no need for access_token when *vagrant_cloud_url* is hosted in-house but the packer build fails complaining about access_token. -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6c5b5a8a-7ebc-4f1b-b024-b595d4d56b38%40googlegroups.com.