Op donderdag 14 mei 2020 03:24:39 UTC+2 schreef TheTube:
>
>
>
> If I validate packer says:
>
> Errors validating build 'vmware-iso'. 2 error(s) occurred:
>
> * access_token must be set if vagrant_cloud_url has not been overriden
> * Failed to verify authentication token: 401 Unauthorized
>
> I don´t know what it means ¨access_token must be set.¨
> this is the cloud_token which is filled from the env variabele
> VAGRANT_CLOUD_TOKEN
>
> Any ideaś how i can do this better ?
>
> =========================================================
>
While cycling trough the answers of this group maybe I am missing some
brackets ....
"post-processors": [
{
"type": "shell-local",
"script": "create-cloudbox.sh"
},
{
"output": "{{ user `build_directory` }}/{{user
`box_basename`}}.{{.Provider}}.box",
"type": "vagrant"
},
{
"type": "vagrant-cloud",
"box_tag": "username/nameofmybox",
"access_token": "{{user `cloud_token`}}",
"version": "{{user `version`}}"
}
],
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/4f7630e6-5ccc-407d-bfbb-781858743c5a%40googlegroups.com.