geerlingguy / raspberry-pi-dramble

DEPRECATED - Raspberry Pi Kubernetes cluster that runs HA/HP Drupal 8
http://www.pidramble.com/
MIT License
1.66k stars 260 forks source link

Build scripts (and/or just a user guide) for demo of Ansible + Blinksticks #143

Closed geerlingguy closed 5 years ago

geerlingguy commented 5 years ago

From #112, I've broken out this issue:

Basically, I want to be able to do some slick things in a demo like:

  1. Stop the dramble-node-monitor service so the LEDs go off and the Pis are not monitoring node status anymore.
  2. Turn the blinkstick blue, using serial=1
  3. Turn the blinkstick green, using serial=2
  4. Turn the blinkstick off, with no serial (so all at once)

It would also be sorta cool if I built a sidecar pod to the Drupal pod that would flash the blinkstick any time a request was made to that container (e.g. watch the Apache log?)... but that would probably be something to break out into a separate feature.

I would also like to document the setup and use of blinksticks (vs soldered LED boards) in the Dramble Wiki.

geerlingguy commented 5 years ago

See: https://github.com/geerlingguy/raspberry-pi-dramble/blob/master/testing/presentation/SCRIPT.md

  1. ansible -i inventory all -m service -a "name=dramble-node-monitor state=stopped" -b
  2. ansible -i inventory all -a "blinkstick blue" -b
  3. ansible -i inventory all -a "blinkstick green" -b
  4. ansible -i inventory all -a "blinkstick blue" -b --forks 1
  5. ansible -i inventory all -a "blinkstick red" -b --forks 1
  6. ansible -i inventory all -m service -a "name=dramble-node-monitor state=started" -b
SamTheFishy commented 5 years ago

Thanks very useful.