Skip to content
Chef cookbook to install a Handler that manages blinkenlights for Raspberry Pis and similar devices
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
libraries
recipes
.gitignore
CHANGELOG.md
LICENSE
Policyfile.rb
README.md
chefignore
kitchen.yml
metadata.rb

README.md

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.

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

You can’t perform that action at this time.