Skip to content

rajgouravjain/ansible-infra-with-kitchen-and-testinfra

Repository files navigation

How to setup kitchen-ansible test env

  • download and install ruby
  • install bundler
  • create Gemfile with following contents in directory where kitchen is required. In this case its preprod env ::
source "https://rubygems.org"
gem "test-kitchen"
gem "kitchen-ansible"
gem "serverspec"
gem "kitchen-verifier-serverspec"
gem 'kitchen-docker', :git => 'https://github.com/test-kitchen/kitchen-docker.git'
  • run BUNDLE_GEMFILE=Gemfile bundler install command to install all packages.
  • setup .kitchen.yml file
  • run following commands ::
bundler exec kitchen create basic-ubuntu-2004
bundler exec kitchen converge basic-ubuntu-2004
bundler exec kitchen verify basic-ubuntu-2004

About

Infrastructure testing using serverspec and testinfra

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published