I removed that line but it still fails (see the attached log). I should add
that the corresponding public key was uploaded to Digital Ocean (but I I
don't know if Packer would use that key).
Looks like it has trouble establishing an ssh connection to 127.0.0.1(I
don't understand why it would be trying to do that. Why not ssh directly
into the newly created droplet at DO?) I am pretty sure the sshd is not
running in my Mac. Should it be?
Thanks for your help so far
On Monday, January 14, 2019 at 10:56:48 PM UTC-8, Rickard von Essen wrote:
>
> Remove this line:
>
> "private_key_file=~/.ssh/id_ed25519",
>
> It will interfere with how Packer handles the connection towards the VM.
> (Also I don't see how that key could work, there is not provisioning of it
> before and not supplied to the VM directly in any way)
>
> On Mon, Jan 14, 2019 at 5:31 PM Dan Moutal <[email protected] <javascript:>>
> wrote:
>
>> Here is the playbook. I use this same playboot with vagrant without
>> issues.
>>
>> --
>> 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/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca
>>
>> <https://groups.google.com/d/msgid/packer-tool/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> Dan Moutal
>>
>> On Jan 14, 2019, at 1:20 AM, Rickard von Essen <[email protected]
>> <javascript:>> wrote:
>>
>> The shell provisioner fails because of tcsh, see the docs 1)
>>
>> The ansible provisioning seems to work but fail on something in your
>> playbook. Can you provide your playbook?
>>
>>
>> 1) https://packer.io/docs/provisioners/shell.html#freebsd-example
>>
>> On Mon, Jan 14, 2019 at 1:57 AM Dan Moutal <[email protected] <javascript:>>
>> wrote:
>>
>>> I am just getting started with Packer and have run into some issues.
>>>
>>> I am running Packer 1.3.3 installed using homebrew on MacOS 10.14.2 and
>>> I am having trouble running the Ansible Provisioner. As a troubleshooting
>>> step I tried using the shell provisioner but that also failed. I don't
>>> really need the ouse the shell provisioner since I plan to configure
>>> everything using Ansible but figured it would be a simpler test to
>>> troubleshoot.
>>>
>>> I have attached my packer json builds and the corresponding output.
>>>
>>> Run1: Ansible provisioner
>>> Run2: Shell provisioner
>>>
>>> Any help would be appreciated.
>>>
>>> --
>>> 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/2fe0ccb6-89a3-4b62-ab5a-0b07a90d1387%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/packer-tool/2fe0ccb6-89a3-4b62-ab5a-0b07a90d1387%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/CALz9Rt--YzjOKFU82Q7RgnM4ipLtRgHiY%2B6E8uaGWty-9HoMcg%40mail.gmail.com
>>
>> <https://groups.google.com/d/msgid/packer-tool/CALz9Rt--YzjOKFU82Q7RgnM4ipLtRgHiY%2B6E8uaGWty-9HoMcg%40mail.gmail.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/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca
>>
>> <https://groups.google.com/d/msgid/packer-tool/CAD80A2B-8FF3-4261-B8BF-D8A8605F5505%40moutal.ca?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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/b38eb72f-f4b6-4b3b-9478-b06a891cedb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2019/01/14 23:25:17 [INFO] Packer version: 1.3.3
2019/01/14 23:25:17 Packer Target OS/Arch: darwin amd64
2019/01/14 23:25:17 Built with Go Version: go1.11.2
2019/01/14 23:25:17 Detected home directory from env var: /Users/dan
2019/01/14 23:25:17 Using internal plugin for amazon-ebs
2019/01/14 23:25:17 Using internal plugin for amazon-instance
2019/01/14 23:25:17 Using internal plugin for docker
2019/01/14 23:25:17 Using internal plugin for googlecompute
2019/01/14 23:25:17 Using internal plugin for ncloud
2019/01/14 23:25:17 Using internal plugin for oracle-classic
2019/01/14 23:25:17 Using internal plugin for cloudstack
2019/01/14 23:25:17 Using internal plugin for digitalocean
2019/01/14 23:25:17 Using internal plugin for hyperv-iso
2019/01/14 23:25:17 Using internal plugin for oneandone
2019/01/14 23:25:17 Using internal plugin for scaleway
2019/01/14 23:25:17 Using internal plugin for virtualbox-ovf
2019/01/14 23:25:17 Using internal plugin for amazon-ebssurrogate
2019/01/14 23:25:17 Using internal plugin for file
2019/01/14 23:25:17 Using internal plugin for lxc
2019/01/14 23:25:17 Using internal plugin for virtualbox-iso
2019/01/14 23:25:17 Using internal plugin for vmware-vmx
2019/01/14 23:25:17 Using internal plugin for amazon-chroot
2019/01/14 23:25:17 Using internal plugin for parallels-pvm
2019/01/14 23:25:17 Using internal plugin for lxd
2019/01/14 23:25:17 Using internal plugin for openstack
2019/01/14 23:25:17 Using internal plugin for qemu
2019/01/14 23:25:17 Using internal plugin for amazon-ebsvolume
2019/01/14 23:25:17 Using internal plugin for hcloud
2019/01/14 23:25:17 Using internal plugin for hyperv-vmcx
2019/01/14 23:25:17 Using internal plugin for null
2019/01/14 23:25:17 Using internal plugin for oracle-oci
2019/01/14 23:25:17 Using internal plugin for parallels-iso
2019/01/14 23:25:17 Using internal plugin for azure-arm
2019/01/14 23:25:17 Using internal plugin for triton
2019/01/14 23:25:17 Using internal plugin for alicloud-ecs
2019/01/14 23:25:17 Using internal plugin for profitbricks
2019/01/14 23:25:17 Using internal plugin for vmware-iso
2019/01/14 23:25:17 Using internal plugin for chef-client
2019/01/14 23:25:17 Using internal plugin for powershell
2019/01/14 23:25:17 Using internal plugin for shell-local
2019/01/14 23:25:17 Using internal plugin for ansible
2019/01/14 23:25:17 Using internal plugin for chef-solo
2019/01/14 23:25:17 Using internal plugin for puppet-masterless
2019/01/14 23:25:17 Using internal plugin for windows-restart
2019/01/14 23:25:17 Using internal plugin for ansible-local
2019/01/14 23:25:17 Using internal plugin for puppet-server
2019/01/14 23:25:17 Using internal plugin for shell
2019/01/14 23:25:17 Using internal plugin for windows-shell
2019/01/14 23:25:17 Using internal plugin for file
2019/01/14 23:25:17 Using internal plugin for converge
2019/01/14 23:25:17 Using internal plugin for salt-masterless
2019/01/14 23:25:17 Using internal plugin for breakpoint
2019/01/14 23:25:17 Using internal plugin for docker-tag
2019/01/14 23:25:17 Using internal plugin for googlecompute-import
2019/01/14 23:25:17 Using internal plugin for manifest
2019/01/14 23:25:17 Using internal plugin for vagrant
2019/01/14 23:25:17 Using internal plugin for vsphere
2019/01/14 23:25:17 Using internal plugin for amazon-import
2019/01/14 23:25:17 Using internal plugin for docker-import
2019/01/14 23:25:17 Using internal plugin for googlecompute-export
2019/01/14 23:25:17 Using internal plugin for vsphere-template
2019/01/14 23:25:17 Using internal plugin for checksum
2019/01/14 23:25:17 Using internal plugin for docker-push
2019/01/14 23:25:17 Using internal plugin for shell-local
2019/01/14 23:25:17 Using internal plugin for vagrant-cloud
2019/01/14 23:25:17 Using internal plugin for compress
2019/01/14 23:25:17 Using internal plugin for docker-save
2019/01/14 23:25:17 Using internal plugin for alicloud-import
2019/01/14 23:25:17 Using internal plugin for artifice
2019/01/14 23:25:17 Detected home directory from env var: /Users/dan
2019/01/14 23:25:17 Attempting to open config file: /Users/dan/.packerconfig
2019/01/14 23:25:17 [WARN] Config file doesn't exist: /Users/dan/.packerconfig
2019/01/14 23:25:17 Packer config: &{DisableCheckpoint:false
DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000
Builders:map[amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs
ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud
cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack
qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu
docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker
scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway
amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate
azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm
oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone
file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file
vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx
null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null
googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute
triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton
virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf
parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm
lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd
parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso
amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot
hcloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud
alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs
vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso
amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance
oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic
digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean
hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso
virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso
openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack
amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume
lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc
hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx
oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci
profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks]
PostProcessors:map[amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import
docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import
docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push
compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress
alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import
googlecompute-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import
manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest
vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant
shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local
docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save
docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag
vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere
googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export
vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template
checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum
vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud
artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice]
Provisioners:map[chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client
chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo
breakpoint:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint
shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local
puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server
shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell
file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file
converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge
powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell
ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local
windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell
salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless
ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible
puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless
windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart]}
2019/01/14 23:25:17 Detected home directory from env var: /Users/dan
2019/01/14 23:25:17 Setting cache directory:
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/packer_cache
2019/01/14 23:25:17 Detected home directory from env var: /Users/dan
2019/01/14 23:25:17 Loading builder: digitalocean
2019/01/14 23:25:17 Plugin could not be found. Checking same directory as
executable.
2019/01/14 23:25:17 Current exe path: /usr/local/bin/packer
2019/01/14 23:25:17 Creating plugin client for path: /usr/local/bin/packer
2019/01/14 23:25:17 Starting plugin: /usr/local/bin/packer
[]string{"/usr/local/bin/packer", "plugin", "packer-builder-digitalocean"}
2019/01/14 23:25:17 Waiting for RPC address for: /usr/local/bin/packer
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 [INFO] Packer version: 1.3.3
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Packer Target OS/Arch: darwin
amd64
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Built with Go Version: go1.11.2
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Detected home directory from
env var: /Users/dan
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Attempting to open config file:
/Users/dan/.packerconfig
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 [WARN] Config file doesn't
exist: /Users/dan/.packerconfig
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Packer config:
&{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000
PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Detected home directory from
env var: /Users/dan
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Setting cache directory:
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/packer_cache
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Detected home directory from
env var: /Users/dan
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 args:
[]string{"packer-builder-digitalocean"}
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Plugin minimum port: 10000
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Plugin maximum port: 25000
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Plugin address: unix
/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/packer-plugin616522571
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Waiting for connection...
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Serving a plugin connection...
2019/01/14 23:25:17 Loading provisioner: ansible
2019/01/14 23:25:17 Plugin could not be found. Checking same directory as
executable.
2019/01/14 23:25:17 Current exe path: /usr/local/bin/packer
2019/01/14 23:25:17 Creating plugin client for path: /usr/local/bin/packer
2019/01/14 23:25:17 Starting plugin: /usr/local/bin/packer
[]string{"/usr/local/bin/packer", "plugin", "packer-provisioner-ansible"}
2019/01/14 23:25:17 Waiting for RPC address for: /usr/local/bin/packer
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 [INFO] Packer version: 1.3.3
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Packer Target OS/Arch: darwin
amd64
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Built with Go Version: go1.11.2
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Detected home directory from
env var: /Users/dan
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Attempting to open config file:
/Users/dan/.packerconfig
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 [WARN] Config file doesn't
exist: /Users/dan/.packerconfig
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Packer config:
&{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000
PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Detected home directory from
env var: /Users/dan
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Setting cache directory:
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/packer_cache
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Detected home directory from
env var: /Users/dan
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 args:
[]string{"packer-provisioner-ansible"}
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Plugin minimum port: 10000
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Plugin maximum port: 25000
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Plugin address: unix
/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/packer-plugin931122311
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Waiting for connection...
2019/01/14 23:25:17 packer: 2019/01/14 23:25:17 Serving a plugin connection...
2019/01/14 23:25:17 ui: [1;32mdigitalocean output will be in this color.[0m
2019/01/14 23:25:17 ui:
2019/01/14 23:25:17 Build debug mode: false
2019/01/14 23:25:17 Force build: false
2019/01/14 23:25:17 On error:
2019/01/14 23:25:17 Preparing build: digitalocean
2019/01/14 23:25:18 packer: 2019/01/14 23:25:18 ansible-playbook version: 2.7.5
2019/01/14 23:25:18 Waiting on builds to complete...
2019/01/14 23:25:18 Starting build run: digitalocean
2019/01/14 23:25:18 Running builder: digitalocean
2019/01/14 23:25:18 [INFO] (telemetry) Starting builder digitalocean
2019/01/14 23:25:18 ui: [1;32m==> digitalocean: Creating temporary ssh key for
droplet...[0m
2019/01/14 23:25:18 packer: 2019/01/14 23:25:18 temporary ssh key name:
packer-5c3d8ade-6361-0068-ffc1-1837aa453f16
2019/01/14 23:25:18 ui: [1;32m==> digitalocean: Creating droplet...[0m
2019/01/14 23:25:19 ui: [1;32m==> digitalocean: Waiting for droplet to become
active...[0m
2019/01/14 23:25:19 packer: 2019/01/14 23:25:19 Waiting for up to 360 seconds
for droplet to become active
2019/01/14 23:25:19 packer: 2019/01/14 23:25:19 Checking droplet status...
(attempt: 1)
2019/01/14 23:25:23 packer: 2019/01/14 23:25:23 Checking droplet status...
(attempt: 2)
2019/01/14 23:25:27 packer: 2019/01/14 23:25:27 Checking droplet status...
(attempt: 3)
2019/01/14 23:25:31 packer: 2019/01/14 23:25:31 Checking droplet status...
(attempt: 4)
2019/01/14 23:25:34 packer: 2019/01/14 23:25:34 Checking droplet status...
(attempt: 5)
2019/01/14 23:25:37 packer: 2019/01/14 23:25:37 Checking droplet status...
(attempt: 6)
2019/01/14 23:25:41 packer: 2019/01/14 23:25:41 Checking droplet status...
(attempt: 7)
2019/01/14 23:25:44 packer: 2019/01/14 23:25:44 Checking droplet status...
(attempt: 8)
2019/01/14 23:25:47 packer: 2019/01/14 23:25:47 Checking droplet status...
(attempt: 9)
2019/01/14 23:25:51 packer: 2019/01/14 23:25:51 Checking droplet status...
(attempt: 10)
2019/01/14 23:25:54 packer: 2019/01/14 23:25:54 Checking droplet status...
(attempt: 11)
2019/01/14 23:25:58 packer: 2019/01/14 23:25:58 Checking droplet status...
(attempt: 12)
2019/01/14 23:26:01 packer: 2019/01/14 23:26:01 Checking droplet status...
(attempt: 13)
2019/01/14 23:26:04 packer: 2019/01/14 23:26:04 Checking droplet status...
(attempt: 14)
2019/01/14 23:26:08 packer: 2019/01/14 23:26:08 Checking droplet status...
(attempt: 15)
2019/01/14 23:26:09 ui: [1;32m==> digitalocean: Using ssh communicator to
connect: 142.93.16.151[0m
2019/01/14 23:26:09 packer: 2019/01/14 23:26:09 [INFO] Waiting for SSH, up to
timeout: 5m0s
2019/01/14 23:26:09 ui: [1;32m==> digitalocean: Waiting for SSH to become
available...[0m
2019/01/14 23:26:24 packer: 2019/01/14 23:26:24 [DEBUG] TCP connection to SSH
ip/port failed: dial tcp 142.93.16.151:22: i/o timeout
2019/01/14 23:26:34 packer: 2019/01/14 23:26:34 [DEBUG] TCP connection to SSH
ip/port failed: dial tcp 142.93.16.151:22: connect: connection refused
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 [INFO] Attempting SSH
connection...
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 [DEBUG] reconnecting to TCP
connection for SSH
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 [DEBUG] handshaking with SSH
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 [DEBUG] handshake complete!
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 [DEBUG] Opening new ssh session
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 [INFO] agent forwarding enabled
2019/01/14 23:26:39 ui: [1;32m==> digitalocean: Connected to SSH![0m
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 Running the provision hook
2019/01/14 23:26:39 [INFO] (telemetry) Starting provisioner ansible
2019/01/14 23:26:39 ui: [1;32m==> digitalocean: Provisioning with
Ansible...[0m
2019/01/14 23:26:39 packer: 2019/01/14 23:26:39 SSH proxy: serving on
127.0.0.1:57784
2019/01/14 23:26:39 ui: [1;32m==> digitalocean: Executing Ansible:
ansible-playbook --extra-vars packer_build_name=digitalocean
packer_builder_type=digitalocean -i
/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/packer-provisioner-ansible873250897
/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/playbook.yml -e
ansible_ssh_private_key_file=/var/folders/mr/wndcdqqn0bb9xz1g29zn1c2m0000gn/T/ansible-key983688762[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean:[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean: PLAY [Bootstap Ansible
FreeBSD] ************************************************[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean:[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean: TASK [Setup Sudo and Python3]
**************************************************[0m
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 SSH proxy: accepted connection
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using none
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using publickey
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using publickey
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using publickey
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using publickey
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using publickey
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 authentication attempt from
127.0.0.1:57786 to 127.0.0.1:57784 as dan using publickey
2019/01/14 23:26:40 ui error: [1;31m==> digitalocean: failed to handshake[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean: fatal: [default]: UNREACHABLE!
=> {"changed": false, "msg": "Failed to connect to the host via ssh: Warning:
Permanently added '[127.0.0.1]:57784' (RSA) to the list of known
hosts.\r\nReceived disconnect from 127.0.0.1 port 57784:2: too many
authentication failures\r\nDisconnected from 127.0.0.1 port 57784\r\n",
"unreachable": true}[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean: to retry, use: --limit
@/Users/dan/Code/Infrastructure/Packer/DO-FreeBSD/playbook.retry[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean:[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean: PLAY RECAP
*********************************************************************[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean: default :
ok=0 changed=0 unreachable=1 failed=0[0m
2019/01/14 23:26:40 ui: [0;32m digitalocean:[0m
2019/01/14 23:26:40 packer: 2019/01/14 23:26:40 shutting down the SSH proxy
2019/01/14 23:26:40 [INFO] (telemetry) ending ansible
2019/01/14 23:26:40 ui: [1;32m==> digitalocean: Destroying droplet...[0m
2019/01/14 23:26:41 ui: [1;32m==> digitalocean: Deleting temporary ssh
key...[0m
2019/01/14 23:26:41 [INFO] (telemetry) ending digitalocean
2019/01/14 23:26:41 ui error: [1;31mBuild 'digitalocean' errored: Error
executing Ansible: Non-zero exit status: exit status 4[0m
2019/01/14 23:26:41 Builds completed. Waiting on interrupt barrier...
2019/01/14 23:26:41 machine readable: error-count []string{"1"}
2019/01/14 23:26:41 ui error:
==> Some builds didn't complete successfully and had errors:
2019/01/14 23:26:41 machine readable: digitalocean,error []string{"Error
executing Ansible: Non-zero exit status: exit status 4"}
2019/01/14 23:26:41 ui error: --> digitalocean: Error executing Ansible:
Non-zero exit status: exit status 4
2019/01/14 23:26:41 ui:
==> Builds finished but no artifacts were created.
2019/01/14 23:26:41 [INFO] (telemetry) Finalizing.
2019/01/14 23:26:42 waiting for all plugin processes to complete...
2019/01/14 23:26:42 /usr/local/bin/packer: plugin process exited
2019/01/14 23:26:42 /usr/local/bin/packer: plugin process exited