On May 8, 2012, at 2:07 PM, Geoff Meakin wrote:
I think you are missing then the main feature of Chef configuration management - to ensure system is always in a correct state. A better way for solving your problem will be to use "not_if/only_if" for "service" resource. For example, do no start the service if there is a specific file present on the system. When you need to have your database down, just create that file, and chef will not do anything. Removing the file will mean for chef to do all required things.
--
Vladimir Girnet Infrastructure Engineer Tacit Knowledge http://www.tacitknowledge.com |
Archive powered by MHonArc 2.6.16.