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

Add Password Parameter to Inspec Provisioner #20

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

Add Password Parameter to Inspec Provisioner #20

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 @kclinden in hashicorp/packer#10151 and has been migrated to this repository. The original issue description is below.


Description

When using Inspec with Windows and WinRM you have to provide a password using the --password paremter via inspec exec. Instead of making this be sent as an extra argument add a parameter to the provisioner.

Use Case(s)

Using Packer with Windows WinRM and the Inspec Provisioner over WinRM

Potential configuration

  provisioner "inspec" {
    backend                = "winrm"
    password              = {{.WinRMPassword}}
    host                       = "{{build `Host`}}"
    inspec_env_vars   = ["CHEF_LICENSE=accept"]
    profile                   = "https://github.com/kclinden/microsoft-windows-server-2016-stig-baseline"
    user                      = "Administrator"
  }

Potential References

@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