Giter Site home page Giter Site logo

chef_vm_inventory's Introduction

Chef VM Inventory

A simple command line tool to get inventory of Chef nodes from the Chef server and output as MediaWiki wikitext, JSON, YAML, or CSV. The nodes are organized based on their environment.

Prerequisites

  1. Ruby 1.9.3+
  2. RubyGems
  3. Bundler (Optional)

Setup

  1. Extract to a system with knife setup.
  2. Install Prerequisite Rubygems
  3. bundle install
  4. Configure Settings JSON or YAML (Whichever you prefer)

Usage

At this point it's fairly simple. If you have the databag_manager_settings.json updated with your configurations; just run the ruby script.

ruby ./chef_vm_inventory.rb

If you'd like to use YAML instead of JSON; either change the default variable in the Ruby script or run the script using the filepath argument.

ruby ./chef_vm_inventory.rb -f ./chef_vm_inventory_settings.yml

Options: -f, --filepath FILEPATH JSON or YAML Configuration File Full Path if not in same Directory -h, --help Show this message

Disclaimer

Use at your own risk. I'm not responsible for any damage or data lose.

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.