hashicorp / packer-plugin-inspec

This Packer provisioner has been archived due to it no longer being maintained. Users are encouraged to use the shell or shell-local provisioner to run the provisioning tools made available by this plugin. If interested in maintaining this plugin please reach out to us at packer@hashicorp.com.
https://www.packer.io/docs/provisioners/inspec
Mozilla Public License 2.0
7 stars 5 forks source link

[inspec][1.6.0] inspec provisioner fails with winrm connection #21

Open hc-github-team-packer opened 3 years ago

hc-github-team-packer commented 3 years ago

This issue was originally opened by @lmayorga1980 in https://github.com/hashicorp/packer/issues/9472 and has been migrated to this repository. The original issue description is below.


It seems like inspec provisioner does not provide more detailed output on why the connection failed or execution expired.

{
      "type": "inspec",
      "inspec_env_vars": [ "CHEF_LICENSE=accept"],
      "backend": "winrm",
      "host":"myremotehost",
      "profile" : "inspec/profile",
      "user": "Administrator",
      "extra_arguments": [ "--user", "{{user `win_user`}}", "--password", "{{user `win_password`}}" , "--port", "5986", "--insecure"]
    }
==> openstack: Provisioning with Inspec...
2020/06/23 20:37:42 packer-provisioner-inspec plugin: SSH proxy: serving on 127.0.0.1:63515
==> openstack: Executing Inspec: inspec exec inspec/profile --backend winrm --host myremotehost --user Administrator --input-file /var/folders/8l/z3xs5ygs1blb5_9z58kmpy_d2gwgq4/T/packer-provisioner-inspec.034262034.yml --user Administrator  --password ****** --port 5986 --insecure
    openstack: execution expired
2020/06/23 20:38:55 packer-provisioner-inspec plugin: shutting down the SSH proxy
2020/06/23 20:38:55 [INFO] (telemetry) ending inspec
==> openstack: Provisioning step had errors: Running the cleanup provisioner, if present...
nywilken commented 3 years ago

With the archival of this repository all open issues will be marked as read-only. If you wish to further discuss this plugin or any of its open issues we invite you to open a discussion on the Packer community forum.

More details on the plugin archiving process for this provisioner can be found on the Plans to Archive Unmaintained Packer Provisioner Plugins blog post.