Git Product home page Git Product logo

knife-runlist-compare's Introduction

Knife Runlist Compare

Knife Runlist Compare is is a Knife plugin which allows you, as the name suggests, to compare two Chef run_lists. It takes each run_list it is given, expands them into the list of recipes which would be executed on a node, and produces a diff of the differences between those recipe lists.

Gem Version

Installation

Gem Install

knife-runlist-compare is available on rubygems. Add the following to your Gemfile:

gem 'knife-runlist-compare'

or install the gem manually:

gem install knife-runlist-compare

Usage

knife runlist compare RUNLIST_1 RUNLIST_2 (options)

Supported Options

Environment

The environment option allows you to specify the Chef environment to be used in the run_list expansion process (defaults to production)

-e ENV_NAME
--environment ENV_NAME

Data Source

The datasource option allows you to specify whether to use the Chef Server (server) or local disk (disk) to load roles and recipes for run_list expansion

-d DATA_SOURCE
--data-source DATA_SOURCE

Context Lines

The context_lines option allows you to specify the number of lines of context to be shown around each item in the diff output (defaults to 10000)

-U CONTEXT_LINES
--context-lines CONTEXT_LINES

Usage Example

$ knife runlist compare 'role[Base]' 'role[NewBase]' -U 3
run_list role[Base] expands to the following recipes:
["foo", "bar::baz"]

run_list role[NewBase] expands to the following recipes:
["foo"]

The following is the diff of these run_lists:
 foo
-bar::baz

knife-runlist-compare's People

Stargazers

Michael Hood avatar John Claus avatar Brian Scott avatar

Watchers

Jon Cowie avatar James Cloos avatar

Forkers

nishansubedi

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.