Skip to content

IronCore864/tdi-ansible-kitchen-serverspec-devops

Repository files navigation

Test-driven infrastructure

with ansible, docker, test-kitchen, and serverspec, integrated with CircleCI

Dependencies

Ansible (of course)

Ruby (rvm recommended https://rvm.io/)

Docker/Vagrant (in this example docker is used since docker is faster)

How to run

gem install bundler
bundle

which will install every dependencies listed in the Gemfile.

If you want to know more about it: http://bundler.io/

kitchen test 
kitchen destroy

Test kitchen will create a docker, converge it to the status described in your ansible playbook, run some serverspec test cases, and destroy it at the end.

This repo is integrated with CircleCI. See .circleci/config.yml for an example about how to use virtual machine instead of docker in CircleCI for testing, and run test-kitchen in it.

Releases

No releases published

Packages

No packages published

Languages