Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonlives/knife-flip
A knife plugin to quickly move a node between environments
https://github.com/jonlives/knife-flip
Last synced: 26 days ago
JSON representation
A knife plugin to quickly move a node between environments
- Host: GitHub
- URL: https://github.com/jonlives/knife-flip
- Owner: jonlives
- Created: 2012-02-01T11:15:39.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2023-07-27T15:51:55.000Z (over 1 year ago)
- Last Synced: 2024-08-09T03:08:27.435Z (4 months ago)
- Language: Ruby
- Homepage:
- Size: 169 KB
- Stars: 77
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-chef - Knife Flip - A knife plugin to quickly move a node between environments. (Add-ons / Resources - Application configuration)
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