Alvaro, Rickard, sorry for my innatention about using sequence for 
postprocessors! Now all works perfectly, thank you!

Best regards, Renat

вторник, 30 мая 2017 г., 13:00:45 UTC+3 пользователь Alvaro Miranda 
Aguilera написал:
>
> Hello
>
> post-processor run in parallel, so you need the double [ [ a , b ] ] to 
> force them be in sequence.
>
> Alvaro
>
> On Tue, May 30, 2017 at 11:50 AM, <[email protected] <javascript:>> 
> wrote:
>
>> Rickard, yes, I'm using vagrant post-processor, and with checksum 
>> post-ropessor
>>
>>   "post-processors": [
>>     {
>>       "type": "vagrant",
>>       "output": "win7.box",
>>       "keep_input_artifact": false
>>     },
>>     {
>>       "type": "checksum",
>>       "checksum_types": ["sha1"],
>>       "output": "boxes/win7-sha1.txt"
>>     }
>>
>> But after build boxes/win7-sha1.txt contain next line:
>>
>> 3d1507efb6e1d2c21074ea26fc8e86a27e8d38a5    win7.ovf
>>
>> I want to get win7.box checksum, not only sum of win7.ovf
>>
>> Renat
>>
>> вторник, 30 мая 2017 г., 10:54:55 UTC+3 пользователь Rickard von Essen 
>> написал:
>>>
>>> > 1. Using checksum post-processor. They give me checksums for disks, 
>>> but not for entire box file.
>>>
>>> Since you write "but not for [the] entire box file" I assume you are 
>>> using the vagrant post-processor. I think you just missed that you need to 
>>> have the checksum post-processor in a sequence after the vagrant 
>>> post-processor.
>>>
>>> {
>>>   "post-processors": [
>>>     [
>>>       {
>>>         "type": "vagrant",
>>>         "keep_input_artifact": false
>>>       },
>>>       {
>>>         "type": "checksum",
>>>       }
>>>     ]
>>>   ]
>>> }
>>>
>>>
>>> See https://www.packer.io/docs/templates/post-processors.html
>>> and especially 
>>> https://www.packer.io/docs/templates/post-processors.html#creating-vagrant-boxes-in-atlas
>>>
>>> / Rickard
>>>
>>> On 30 May 2017 at 09:12, <[email protected]> wrote:
>>>
>>>> Hello,
>>>>
>>>> My goal is getting checsum of box file, created by virtualbox-iso 
>>>> builder. I think there are two ways:
>>>>
>>>> 1. Using checksum post-processor. They give me checksums for disks, but 
>>>> not for entire box file.
>>>> 2. Using shell-local post-processor. But this don't work for me, 
>>>> because I use WIndows, and this bug 
>>>> <https://github.com/hashicorp/packer/issues/4140> is dissapointed me.
>>>>
>>>> Possible there have another solution for my task? I will be very 
>>>> apprecated for any help. 
>>>>
>>>> Renat.
>>>> <https://github.com/hashicorp/packer/issues/4140>
>>>>
>>>> -- 
>>>> 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/a3c271c1-7892-4f5d-9213-5e704f06dcd8%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/packer-tool/a3c271c1-7892-4f5d-9213-5e704f06dcd8%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/8a837d79-fa95-4e87-a3a5-374d52ee5842%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/8a837d79-fa95-4e87-a3a5-374d52ee5842%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Alvaro
>
>

-- 
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/54675728-28a3-4fe4-9965-06df5301e7ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to