🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Chef Tutorials: Test Kitchen – Example of .kitchen.yml with aws ec2 on Windows

---
driver:
name: ec2
aws_ssh_key_id: xxxx
region: eu-west-1
availability_zone: b
security_group_ids: ["xxxx"]
subnet_id: subnet-xxxx
instance_type: m3.large
associate_public_ip: true
interface: dns
retryable_tries: 200
retryable_sleep: 10
block_device_mappings:
- device_name: /dev/sda1
ebs:
volume_size: 80
delete_on_termination: true
transport:
name: winrm
elevated: true
ssh_key: /xxxx/.ssh/id_rsa
provisioner:
name: chef_zero
log_level: <%= ENV['CHEF_LOG_LEVEL'] || "auto" %>
require_chef_omnibus: 13.3.42
retry_on_exit_code:
- 35
- 20
wait_for_retry: 360
max_retries: 3
environments_path: test/integration/environments
client_rb:
exit_status: :enabled
client_fork: false
environment: test_platform
verifier:
name: inspec
format: junit
output: ./<%= ENV['OUTPUT'] %>
platforms:
- name: windows-2016
driver:
image_id: ami-f97e8f80
- name: windows-2012r2
driver:
image_id: ami-6dd02214
suites:
- name: default
run_list:
- recipe[cookbook-fourth-barryexample::default]
attributes:
cookbook-fourth-barryexample:
accept_eula: true
---
driver:
name: ec2
aws_ssh_key_id: my_key
security_group_ids: ["sg-xxxxxx"]
region: us-west-2
availability_zone: us-west-2b
subnet_id: subnet-xxxxxxxxxxxx
iam_profile_name: my_profile
instance_type: t2.medium
associate_pulbic_ip: false
interface: private
retryable_tries: 120
transport:
username: Administrator
connection_retries: 60
connection_retry_sleep: 5
platforms:
- name: windows-2012r2
driver:
image_id: ami-91a7bef0
suites:
- name: default
run_list:
- recipe[my_cookbook::default]
---
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
Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x