Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

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

Open
hc-github-team-packer opened this issue Nov 9, 2021 · 1 comment

Comments

@hc-github-team-packer
Copy link

This issue was originally opened by @lmayorga1980 in hashicorp/packer#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
Copy link
Contributor

nywilken commented Nov 9, 2021

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants