Skip to content

anyperk/chef_locker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chef_locker

chef_locker is a Ruby gem that contains a script to prevent Chef clients from converging.

Installation

To install, declare something like the following in Chef:

chef_gem 'chef_locker'

Note that if something like rvm is installed, you may have to create a wrapper script to unset some Ruby-related environment variables.

Running

Run sudo -H chef_locker [message with reason why] in a screen/tmux session and wait for Lock acquired to appear. Then detach from your screen/tmux session to keep Chef stopped (ctrl+b d in tmux).

To remove the lock and reenable Chef again, kill the process (ctrl + c).

About

A small ruby gem to lock Chef runs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages