Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Windows testing and sanitised kitchen.yml #5

Merged
merged 1 commit into from
Nov 11, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

*.pem

Berks*
.chef*
Berks*
Berks*.kitchen/
.kitchen.local.yml
.kitchen/*
65 changes: 44 additions & 21 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,44 @@
---
driver:
name: vagrant

provisioner:
name: chef_zero

# Uncomment the following verifier to leverage Inspec instead of Busser (the
# default verifier)
# verifier:
# name: inspec

platforms:
- name: ubuntu-14.04
- name: centos-7.1

suites:
- name: default
run_list:
- recipe[base-win2012-hardening::default]
attributes:
---
driver:
name: ec2
aws_ssh_key_id: your_key
region: eu-west-1
availability_zone: b
require_chef_omnibus: true
instance_type: m1.small
associate_public_ip: true
interface: dns
security_group_ids: ["your SG ID"]
shared_credentials_profile: default

verifier:
name: inspec

provisioner:
name: chef_solo
client_rb:
audit_mode: :enabled

transport:
ssh_key: C:/ssh/key/path
connection_timeout: 10
connection_retries: 5

platforms:
- name: windows-2012r2
driver:
image_id: win2012_ami
tags: {
Name: "my-kitchen win2012 node",
created-by: "my-test-kitchen-win2012"
}

suites:
- name: default
run_list:
- recipe[base-win2012-hardening::enable_winrm_access]
- recipe[base-win2012-hardening::default]
attributes:
verifier:
inspec_tests:
- https://github.com/dev-sec/windows-hardening-benchmark