Commit de2d2686 authored by Jamie Tanna's avatar Jamie Tanna

Document custom RubyGems repo for Test Kitchen

parent f8816a11
title: "Setting up a custom RubyGems Repository for Chef in Test Kitchen"
description: "How to use a private RubyGems repository for your Chef gem dependencies in Test Kitchen."
- chef
- blogumentation
- test-kitchen
license_code: Apache-2.0
license_prose: CC-BY-NC-SA-4.0
date: 2019-09-17T13:33:14+01:00
slug: "chef-test-kitchen-rubygems"
If you work in an Enterprise, you likely have guidelines around where your dependencies can be stored. Alternatively, you may have proprietary dependencies that you want to store privately.
Although you may have set up your Chef Client to use your private RubyGems repo, that will not work when you're running through Test Kitchen because it sets up its own Chef configuration.
To resolve this, update your `$HOME/.kitchen/config.yml` or your `.kitchen.yml` with the following addition to the `provisioner` block:
name: chef_zero
+ client_rb:
+ rubygems_url ''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment