Giter Club home page Giter Club logo

knife-supermarket's Introduction

knife-supermarket

This Knife Plugin is an easy way to switch between various supermarkets, the biggest of them being the Chef Community Site, located at https://supermarket.chef.io. The knife supermarket commands mimic the knife cookbook site commands and work the same way.

Installation

If you are running Chef-DK you can install it by running:

$ chef gem install knife-supermarket

Otherwise, this plugin is distributed as a Ruby Gem. To install it, run:

$ gem install knife-supermarket

Depending on your system's configuration, you may need to run this command with root privileges.

Configuration

Out of the box, knife-supermarket is configured to point at https://supermarket.chef.io, but it can be configured to point at the unofficial supermarket. This can be done two ways:

On The Command Line

When using the knife supermarket commands you can specify a --supermarket-site or -m flag and specify the uri of the new supermarket. So, for example, if your supermarket was hosted at https://franchise.somecompany.com you could run knife supermarket install --supermarket-site https://franchise.somecompany.com mysql.

knife.rb Configuration

It may be preferable to have this setting default to another host. For that, we can set the knife[:supermarket_site] setting in our knife.rb. So if we wanted to default to a supermarket hosted at https://franchise.somecompany.com it would be:

knife[:supermarket_site] = 'https://franchise.somecompany.com'

Now when you run knife supermarket install mysql it will install the mysql cookbook from https://franchise.somecompany.com.

Subcommands

The subcommands work the same way they for knife cookbook site. Please see https://docs.chef.io/chef/knife.html#cookbook-site for more information on the subcommands.

knife-supermarket's People

Contributors

cwebberops avatar eherot avatar raskchanky avatar leftathome avatar

Watchers

James Cloos avatar David Crowder 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.