0.0
No commit activity in last 3 years
No release in over 3 years
This contains a script to lock Chef runs.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.5

Runtime

~> 12.0
 Project Readme

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