Code Monkey home page Code Monkey logo

test-kitchen-ansible-example's Introduction

Test Kitchen + Ansible

Structure

├── .kitchen.yml                                  # kitchen config file 
├── ansible.cfg                                   # ansible config file 
├── chefignore  
├── Gemfile
├── Gemfile.lock
├── README.md
├── requirements.yml                              # external roles which should be installed into container
├── roles                                         # local roles which will be copied to container
│   └── motd                                      # example local role 
│       ├── handlers
│       ├── tasks
│       │   └── main.yml
│       ├── templates
│       │   └── motd.j2
│       └── vars
│           └── main.yml
└── test                                         #  kitchen main catalog
    └── integration
        ├── dbservers                            #  database servers suite
        │   ├── default.yml                      #  playbook for db servers
        │   └── serverspec
        │       ├── postgresql_spec.rb           #  spec file for postgres service
        │       └── spec_helper.rb
        ├── default                              
        │   ├── default.yml                      
        │   └── serverspec
        │       ├── default_spec.rb              
        │       └── spec_helper.rb
        └── webservers                           
            ├── default.yml                       
            └── serverspec
                ├── apache_spec.rb
                └── spec_helper.rb

Installation

clone codebase to the local machine.
bash$ git clone https://github.com/diwaniuk/test-kitchen-ansible-example
check if all required commands are install
  • docker
  • ruby
  • gem
  • bundle
install required gems
bash$ bundle install

Usage

execeute test
  $ kitchen test

Some useful resources

Kitchen
ServerSpec
Other

test-kitchen-ansible-example's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.