Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

leds_handler (3) Versions 0.2.2

Installs/Configures the LEDs handler for Raspberry Pi and similar devices

Berkshelf
Policyfile
Knife
cookbook 'leds_handler', '~> 0.2.2'
cookbook 'leds_handler', '~> 0.2.2', :supermarket
knife supermarket install leds_handler
knife supermarket download leds_handler
README
Dependencies
Quality 50%

leds_handler

This cookbook installs a Chef handler for blinking the LEDs on Raspberry Pi and other similar systems that expose control of their LEDs in Linux via /sys/devices/platform/leds/leds/leds0/trigger (where leds0 may be any number of LEDs). At the beginning of the Chef client run the LEDs blink a heartbeat pattern, at the end the LEDs are disabled. If the Chef client run fails the lights all stay on.

If you happen to be using a Macbook Air or Pro it will attempt to flash the /sys/class/leds/smc::kbd_backlight/brightness keyboard backlight at the beginning of the run and power it off at the end. If the Chef client run fails the keyboard backlight is set to maximum.

It's quite simple, but this is an exercise in writing and installing handlers through a cookbook.

https://mattray.github.io/assets/flashing_leds.gif

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.2.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.2.2 passed this metric

No Binaries Metric
            

0.2.2 passed this metric

Publish Metric
            

0.2.2 passed this metric

Supported Platforms Metric
            

0.2.2 passed this metric

Testing File Metric
            

0.2.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.2.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number