Added sensor and rules 81/49381/1
authorParker Berberian <pberberian@iol.unh.edu>
Wed, 20 Dec 2017 17:55:28 +0000 (12:55 -0500)
committerParker Berberian <pberberian@iol.unh.edu>
Wed, 20 Dec 2017 17:55:28 +0000 (12:55 -0500)
commitfc52e89492c20ca7a93d4e48f0cfa01ddacf7fa8
tree1102bbb4e7e7a40711f9e2600516fe4b97e773a0
parent30f389c70e8a0a8bd2ef27be09839eef243ab7f5
Added sensor and rules

JIRA: PHAROS-318

Adds pharos.py which talks with the pharos dashboard to detect when bookings
are created and stores the needed information in the stackstorm datastore.
By default, the sensor will poll the dashboard every 30 seconds to check for changes.

The dashboard sensor will dispatch the triggers defined in dashboard_listener.yaml.

The rules in rules/* links the triggers thrown by the api sensor to workflows which will
do the work of deploying / cleaning the hosts.

Change-Id: I7411a16ebbb48739a8f1f5b924dea6493c400071
Signed-off-by: Parker Berberian <pberberian@iol.unh.edu>
laas-fog/pharoslaas/rules/clean.yaml [new file with mode: 0644]
laas-fog/pharoslaas/rules/deployment.yaml [new file with mode: 0644]
laas-fog/pharoslaas/sensors/dashboard_listener.yaml [new file with mode: 0644]
laas-fog/pharoslaas/sensors/pharos.py [new file with mode: 0755]