Skip to content

Instantly share code, notes, and snippets.

@avishayil
Created December 6, 2018 22:41
Show Gist options
  • Save avishayil/1640a0a528a01b49cbd356324afd2187 to your computer and use it in GitHub Desktop.
Save avishayil/1640a0a528a01b49cbd356324afd2187 to your computer and use it in GitHub Desktop.
Test-Kitchen .kitchen.yml for AWS environments
---
driver:
name: ec2
platforms:
- name: windows-2016
driver_plugin: ec2
driver_config:
tags:
created-by: test-kitchen
kitchen-type: windows
user_data: scripts/user_data_windows_2016.ps1
transport:
name: winrm
connection_timeout: 10
connection_retries: 5
username: Administrator
password: Kitchen
verifier:
name: pester
test_folder: tests
- name: rhel
driver_plugin: ec2
driver_config:
user_data: scripts/user_data_rhel_8.sh
transport:
max_ssh_sessions: 1
provisioner:
name: ansible_playbook
roles_path: ./
role_name: ansible_test_kitchen_windows_role
ansible_connection: winrm
ansible_inventory: inventory/hosts
require_windows_support: true
require_chef_for_busser: false
ansible_host_key_checking: false
ansible_verbose: true
ansible_verbosity: 2
playbook: default.yml
suites:
- name: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment