I'm trying to use chef cookbooks for the provisioner. This is my entry in 
my .json file:
    "provisioners": [
        {
          "type": "chef-solo",
          "cookbook_paths": ["cookbooks"]
        }
    ]

According to the Chef-Solo provisioner docs, it will install chef if 
necessary, and that is indeed what appears to be happening.
But the problem arrises during curl's download of the file. It looks like I 
only get half of the file or so, and then the install fails. This is 
repeatable in that every time I run packer build MYJSONFILE.json, It gives 
me the exact same error with the same data sizes.
A copy of the output follows:

$ packer build -debug MYJSONFILE.json
Debug mode enabled. Builds will not be parallelized.
vsphere output will be in this color.


==> vsphere: Pausing after run of step 'StepConnect'. Press enter to 
continue. 
==> vsphere: Cloning VM...
==> vsphere: Pausing after run of step 'StepCloneVM'. Press enter to 
continue. 
==> vsphere: Pausing after run of step 'StepConfigureHardware'. Press enter 
to continue. 
==> vsphere: Power on VM...
==> vsphere: Waiting for IP...
==> vsphere: IP address: <MY_IP_ADDRESS>
==> vsphere: Pausing after run of step 'StepRun'. Press enter to continue. 
==> vsphere: Waiting for SSH to become available...
==> vsphere: Connected to SSH!
==> vsphere: Pausing after run of step 'StepConnect'. Press enter to 
continue. 
==> vsphere: Provisioning with chef-solo
    vsphere: Installing Chef...
    vsphere: sudo: no tty present and no askpass program specified
    vsphere:   % Total    % Received % Xferd  Average Speed   Time    Time 
    Time  Current
    vsphere:                                  Dload  Upload   Total   Spent 
   Left  Speed
    vsphere:  21 23425   21  5100    0     0    450      0  0:00:52  0:00:11 
 0:00:41  1338
    vsphere: curl: (23) Failed writing body (1755 != 2759)
==> vsphere: Pausing before cleanup of step 'StepConnect'. Press enter to 
continue. 

It always fails with 1755 != 2759. The only thing I can think of is the 
install_command is no longer correct?
Anyway, does anyone have any guidance on how to move past this?
Thanks!

-- 
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/e8c0e6d5-3acd-4c96-afeb-bcde67123694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to