An open API service indexing awesome lists of open source software.

https://github.com/ironcore864/tdi-ansible-kitchen-serverspec-devops


https://github.com/ironcore864/tdi-ansible-kitchen-serverspec-devops

ansible configuration-management devops serverspec tdi test-kitchen

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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.