ministryofjustice/sensu-formula — pull request #47 by mikepea (2014-11-21 13:10:50+00:00)
Title: Sensu checks from pillar; fix some bugs; allow sensu gems to be installed

These are largely in the same formats expected by the respective macros,
but with named parameters in all cases (bar the check 'name', which since it
must be unique is the key to the check definition).

This allows for pillar data along the lines of:

```
sensu:
check_definitions:
graphite_carbon_queue:
type: graphite
target: 'carbon.agents.*.cache_size'
postgres:
type: procs
udevd:
type: procs
playbook: http://example.com/procs_playbook
echo_hello:
type: basic
command: 'echo hello'
```

In the process, i've also fixed:

* Adding a playbook for apparmor check, cos it annoys me every time I can't remember the query it uses.
* Reload the right things on standalone vs non-standalone checks
* Allow embedded sensu gems to be installed on a per-role/pillar basis.