Last 12 weeks · 3 commits
4 of 6 standards met
Repository: facebook/chef-utils. Description: Utilities related to Chef Stars: 290, Forks: 77. Primary language: Ruby. Languages: Ruby (93.7%), Erlang (4.8%), Shell (1.4%). License: Apache-2.0. Open PRs: 1, open issues: 4. Last activity: 2w ago. Community health: 75%. Top contributors: jaymzh, dafyddcrosby, odcinek, kcbraunschweig, gcweir, davide125, NaomiReeves, chantra, facebook-github-bot, fejese and others.
Summary: Copy editorconfig settings from between-meals and add patterns for extensionless scripts. Remove vim modelines from 4 files as the editorconfig now handles indentation settings. Test Plan: Verified editorconfig file created correctly and vim modelines removed.
This adds a new hook point (and sample plugin usage) that allows the Chef run to be skipped based on some local criteria. Example usage might be: Device is on battery Device is not connected to VPN/backhaul/etc. Some global service meant to disable runs during an emergency Previously I did this in pre_run or pre_start, but the problem with that is that the only way is to force , which causes the logs to get messed up because we never update the links. This provides a clean way to skip the run but still update the chef.{cur,last} links so that it's clear what has happened. Sample output: ``` $ sudo chefctl -iv [2025-11-13 18:27:44 +1000] DEBUG chefctl: Loading plugin at /etc/cinc/chefctl_hooks.rb. [2025-11-13 18:27:44 +1000] DEBUG chefctl: Including registered plugin KrHook [2025-11-13 18:27:44 +1000] DEBUG chefctl: Trying lock /var/lock/subsys/chefctl [2025-11-13 18:27:44 +1000] DEBUG chefctl: Lock acquired: /var/lock/subsys/chefctl [2025-11-13 18:27:44 +1000] INFO chefctl: taste-tester mode ends in