Pagerduty shall only receive critical alerts
changelog
Merge pull request #26 from ministryofjustice/pagerduty-critical-only

Pagerduty notification only for critical alerts
Add occurences=2 to graphite checks
Update changelog
Merge pull request #27 from ministryofjustice/occurrences

Add occurences=2 to graphite checks
v3.2.2
Handle the 'no roles defined' case.

This prevents a failure when a server has no defined roles grain.

Previously, failed with:

```
Comment: Unable to manage file: Jinja error: 'NoneType' object is not iterable
              Traceback (most recent call last):
                File "/usr/lib/pymodules/python2.7/salt/utils/templates.py", line 263, in render_jinja_tmpl
                  output = jinja_env.from_string(tmplstr).render(**unicode_context)
                File "/usr/lib/python2.7/dist-packages/jinja2/environment.py", line 894, in render
                  return self.environment.handle_exception(exc_info, True)
                File "<template>", line 7, in top-level template code
                File "/usr/lib/python2.7/dist-packages/jinja2/filters.py", line 698, in do_list
                  return list(value)
              TypeError: 'NoneType' object is not iterable

              ; line 7

              ---
              [...]
              {
                "client": {
                  "name": "{{grains['fqdn']}}",
                  "address": "{{grains['fqdn_ip4']}}",
                  "metric_prefix": "{{ grains['fqdn'].split('.')|reverse| join('.') }}",
                  "subscriptions": {{(roles|list + ['all']|list) |json}}    <======================
                }
              }
```
Merge pull request #30 from ministryofjustice/missing_roles_ok

Handle the 'no roles defined' case.
Allow specification of Sensu Hipchat 'from' field

This defaults to 'Sensu' in the hipchat handler, which can be
misleading if you have staging and production logging to the same
room.

This enables the following pillar to override it sensibly.

```
sensu:
  notify:
    hipchat_from: 'Sensu Staging'
```
fix typo
Merge pull request #31 from ministryofjustice/hipchat_from

Allow specification of Sensu Hipchat 'from' field
Merge branch 'master' into median-not-last