packer inspec provisioner in Azure Pipeline

19 views
Skip to first unread message

Richard Kairis

unread,
Oct 26, 2021, 2:48:02 PM10/26/21
to Packer

Running an azure pipeline with packer task. Attempting to run an inspec provisioner. It appears to start but fails immediately with very little error info.

{ "type": "inspec", "profile": "<relative_path>/inspec_role_dir" },

In log:
==> azure-arm: Provisioning with Inspec...

==> azure-arm: Executing Inspec: inspec exec <relative_path>/inspec_role_dir --backend ssh --host 127.0.0.1 --user xxx\VssAdministrator --key-files C:\Users\VSSADM1\AppData\Local\Temp\packer-provisioner-inspec.yyyykey --port 50106 --input-file C:\Users\VSSADM1\AppData\Local\Temp\packer-provisioner-inspec.zzzz.yml -l debug

packer version is 1.7.6.


Does packer add the required software or do I need to specifically install it on the image?

Reply all
Reply to author
Forward
0 new messages