Giter Site home page Giter Site logo

kony-solutions / knife-solo_data_bag_kms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thbishop/knife-solo_data_bag

0.0 69.0 0.0 221 KB

A knife plugin to ease working with data bags and chef solo

Home Page: http://thbishop.com/knife-solo_data_bag/

License: Apache License 2.0

Ruby 95.94% Groff 0.94% Shell 3.12%

knife-solo_data_bag_kms's Introduction

Knife Solo Data Bag

A knife plugin to make working with data bags easier in a chef solo environment.

If you are looking for a full featured chef solo management solution, you may want to check out knife solo.

NOTE: Starting with 1.0.0, knife solo data bag only supports Chef versions >= 11.4.0. If you need support for an earlier version of chef, use a knife solo data bag version < 1.0.0.

Build Status

Build Status

Installation

gem install knife-solo_data_bag

Usage

Create

Create a plain text data bag

$ knife solo data bag create apps app_1

Create an encrypted data bag with the provided string as the secret

$ knife solo data bag create apps app_1 -s secret_key

Create an encrypted data bag with the provided file content as the secret

$ knife solo data bag create apps app_1 --secret-file 'SECRET_FILE'

Create a data bag item with JSON from the command line (works with encryption)

$ knife solo data bag create apps app_1 --json '{"id": "app_1", "username": "bob"}'

Create a data bag item from a json file

$ knife solo data bag create apps app_1 --json-file foo.json

Edit

Edit a plain text data bag

$ knife solo data bag edit apps app_1

Edit an encrypted data bag with the provided string as the secret

$ knife solo data bag edit apps app_1 -s secret_key

Edit an encrypted data bag with the provided file content as the secret

$ knife solo data bag edit apps app_1 --secret-file 'SECRET_FILE'

List

List all of the data bag

$ knife solo data bag list

Show

Show the plain text content of a data bag (if this is an encrypted data bag, it will return the encrypted data)

$ knife solo data bag show apps app_1

Show the unencrypted content of an encrypted data bag with the provided string as the secret

$ knife solo data bag show apps app_1 -s secret_key

Show the unencrypted content of an encrypted data bag with the provided file content as the secret

$ knife solo data bag show apps app_1 --secret-file 'SECRET_FILE'

You can also display any of the above variations in JSON format with -F json

$ knife solo data bag show apps app_1 -s secret_key -F json

Notes

Data Bag Path

By default, this plugin will use the configured data_bag_path. This is defaulted to /var/chef/data_bags by Chef. It is possible to override this path in your Chef client config if desired. When using this plugin, it is also possible to override the path using the --data-bag-path argument.

Encrypted Data Bag Secret

This plugin respects the "encrypted_data_bag_secret" configuration option in knife.rb. Command line secret arguments (-s or --secret-file) will override the setting in knife.rb.

Version Support

This plugin has been tested on the following:

Chef:

  • 11.4.0

Ruby:

  • 1.9.2
  • 1.9.3

OS:

  • OSX
  • Linux

Contribute

  • Fork the project
  • Make your feature addition or bug fix (with tests and docs) in a topic branch
  • Bonus points for not mucking with the gemspec or version
  • Send a pull request

License

See LICENSE for details

knife-solo_data_bag_kms's People

Contributors

thbishop avatar gondoi avatar joeyates avatar skyeagle avatar der-flo avatar toqoz avatar ziadsawalha avatar vineethguna93 avatar

Watchers

Albert Volkman avatar Chris Hales avatar James Cloos avatar  avatar Ed Gross avatar perraju bendapudi avatar Gopi Krishna avatar Karthik Adaparthi avatar  avatar  avatar  avatar Bhargavi Burugupalli avatar  avatar Patrick Burch avatar Suhas Bhat avatar Siva Kumar Gubbala avatar Mark A. Sehorne avatar  avatar Shitij Gupta avatar Arnav Pandey avatar Radha Krishna Tanuku avatar  avatar  avatar Dhana avatar Srinivas Potnuru avatar kaladhar avatar  avatar Ajay Krishna avatar  avatar  avatar  avatar  avatar Raviteja Ganireddy avatar subhadip avatar Chandra sekhar Pasumarthi avatar Mirzafazulur Rahamanbaig avatar Satyanarayana reddy kamasani avatar  avatar  avatar  avatar Ashish Bansal avatar Sivarama Sowri Varanasi avatar Rahul Kumar avatar sandeep srivastav vaddiparthy avatar  avatar Pakala Yashashvini avatar Vishal Sharma avatar Sri Krishna Vishnubhatla avatar  avatar  avatar Meghana Setty avatar Venkata Sai Krishna Raj Bejugam avatar  avatar Tejaswani Sirigudi avatar  avatar Priyadarshini Sabut avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Meghana Setty avatar  avatar  avatar David G. Pullman avatar  avatar sbhargav 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.