Giter Club home page Giter Club logo

chefvm's Introduction

ChefVM

Build Status

Simple Chef environment manager, usage inspired by wayneeseguin/rvm

Installation

# Chefvm will create a symlink between (~/.chefvm -> ~/.chef ), make sure you have no ~/.chef directory before installing
mv ~/.chef ~/.chef.bak
git clone git://github.com/trobrock/chefvm.git ~/.chefvm
~/.chefvm/bin/chefvm init # Follow these instructions

After following these instructions reload your terminal, then

chefvm create old_config
mv ~/.chef.bak/* ~/.chefvm/configurations/old_config
rm -rf ~/.chef.bak

Usage

Put the files (knife.rb, pem keys, etc...) that you would normally have in ~/.chef into a folder named whatever you want in the configurations folder, then you can use that name in place of YOUR_CHEF_CONFIG in the below commands

# Use a specific config
chefvm use {YOUR_CHEF_CONFIG|default}
# or
chefvm YOUR_CHEF_CONFIG

# Set your default config
chefvm default YOUR_CHEF_CONFIG

# List your configurations, including current and default
chefvm list

# Create a new config
chefvm create YOUR_CHEF_CONFIG

# Delete a config
chefvm delete YOUR_CHEF_CONFIG

# Copy a config
chefvm copy SRC_CONFIG DEST_CONFIG

# Rename a config
chefvm rename OLD_CONFIG NEW_CONFIG

# Open a config directory in $EDITOR
chefvm edit YOUR_CHEF_CONFIG

# Update chefvm to the latest
chefvm update

Handy Prompt function

You can use chefvm current in PS1 in bash to see your current config in your prompt

PS1="\$(chefvm current)" $

Contributing

Fork and send a pull request.

Running tests

The following will bring up an ubuntu based vm, install chefvm, and run the bats tests against it.

vagrant up

While the vm is up you can run the following to re-run tests without rebuilding the vm.

vagrant provision

When you are done.

vagrant down

Contributors

Jesse Nelson [https://github.com/spheromak]

chefvm's People

Contributors

czarneckid avatar spheromak avatar trobrock avatar

Watchers

 avatar  avatar  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.