Op donderdag 14 mei 2020 12:14:10 UTC+2 schreef TheTube:
>
> So if I give accesstoken a value. Letś say foo, it still gives me the same 
> error message: * access_token must be set if vagrant_cloud_url has not been 
> overriden
>
>
> Op donderdag 14 mei 2020 12:11:48 UTC+2 schreef TheTube:
>>
>>
>>
>> Op donderdag 14 mei 2020 11:46:37 UTC+2 schreef TheTube:
>>>
>>>
>>>
>>> Op donderdag 14 mei 2020 11:39:56 UTC+2 schreef TheTube:
>>>>
>>>>
>>>>
>>>> Op donderdag 14 mei 2020 11:38:18 UTC+2 schreef TheTube:
>>>>>
>>>>>
>>>>>
>>>>> Op donderdag 14 mei 2020 10:07:14 UTC+2 schreef TheTube:
>>>>>>
>>>>>>
>>>>>>
>>>>>> 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`}}"
>>>>>>     }
>>>>>>   ],
>>>>>>
>>>>>>
>>>>>>
>>>>>> ======================================================================================================
>>>>>>
>>>>> HERE IS THE POST WITH THE BRACKETS. 
>>>>>
>>>>>>  
>>>>>>
>>>>> https://groups.google.com/d/msg/packer-tool/zqqiiqg_ODY/OX7TcyLeAwAJ
>>>>>
>>>>> ========================================================================================================
>>>>>
>>>>> So it seems that I don have to precreate the box through the 
>>>>> webinterface or have to use the API ....
>>>>>
>>>>> "post-processors": [
>>>>>     [
>>>>>     {
>>>>>       "output": "{{ user `build_directory` }}/{{user 
>>>>> `box_basename`}}.{{.Provider}}.box",
>>>>>       "type": "vagrant"
>>>>>     },
>>>>>     {
>>>>>       "type": "vagrant-cloud",
>>>>>       "box_tag": "myusername/test13",
>>>>>       "access_token": "{{user `cloud_token`}}",
>>>>>       "version": "{{user `version`}}"
>>>>>     }
>>>>>     ]
>>>>>   ],
>>>>>
>>>>
>>> Still the same error:
>>>
>>> * access_token must be set if vagrant_cloud_url has not been overriden
>>> * Failed to verify authentication token: 401 Unauthorized
>>>
>>> I exported access_token=foo
>>>
>>            
             echo $access_token
            foo
            

> sudo packer build -only=vmware-iso ubuntu-20.04-amd64.json
>>>
>>  

>  * access_token must be set if vagrant_cloud_url has not been overriden
>>> * Failed to verify authentication token: 401 Unauthorized
>>>
>>
           *Pulling my hair out *





 

>
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>

-- 
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/c242f576-854e-4bdd-afd0-47fdf9324f72%40googlegroups.com.

Reply via email to