Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created September 14, 2019 05:27
Show Gist options
  • Save rohan-molloy/921ca0ecc7f18ee4c0ccc313d99bb6b4 to your computer and use it in GitHub Desktop.
Save rohan-molloy/921ca0ecc7f18ee4c0ccc313d99bb6b4 to your computer and use it in GitHub Desktop.
WinRM test-kitchen configuration. Test-kitchen proxy driver connects to a Windows box, installs Chef (only_if needed) and runs a Policyfile. $kitchen_host, $kitchen_username, $kitchen_password must be defined in environment. Uses insecure WinRM (basic auth/no encryption)
driver:
name: proxy
host: <%= ENV["kitchen_host"] %>
username: <%= ENV["kitchen_username"] %>
password: <%= ENV["kitchen_password"] %>
port: 5985
transport:
name: winrm
elevated: true
provisioner:
name: chef_zero
chef_license: accept
verifier:
name: inspec
platforms:
- name: windows
suites:
- name: default
provisioner:
policyfile: Policyfile.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment