Project

knife-flip

0.03
No release in over 3 years
Low commit activity in last 3 years
A knife plugin to move a node, or all nodes in a role or environment, to a specific environment
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.10.4
>= 0.5.8
 Project Readme

knife-flip

A knife plugin to move a node, or all nodes in a role, to a specific environment

SCRIPT INSTALL

Copy *.rb script from lib/chef/knife to your ~/.chef/plugins/knife directory.

GEM INSTALL

knife-flip is available on rubygems.org - if you have that source in your gemrc, you can simply use:

gem install knife-flip

What it does

knife node flip mynode.foo.com myenv [--preview]

will move the node mynode.foo.com into the environment myenv. Passing in the --preview option it will dry-run the flip and show you what cookbooks and versions would be applied if it were actually flipped.

knife role flip MyRole myenv

will move all nodes containing the role MyRole in their runlists into the environment myenv