hybris/statuspage-notification-resource-boshrelease

Name: statuspage-notification-resource-boshrelease

Owner: hybris GmbH

Description: null

Created: 2015-09-15 15:04:03.0

Updated: 2015-09-15 15:05:58.0

Pushed: 2016-03-03 09:39:11.0

Homepage: null

Size: 15

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

BOSH release for statuspage-notification-resource

Background
What is statuspage-notification-resource?

Send notifications to your statuspage account from Concourse:

Usage

To use this bosh release, first upload it to the BOSH/bosh-lite that is running Concourse:

 upload release https://github.com/hybris/statuspage-notification-resource-boshrelease

Next, update your Concourse deployment manifest to add the resource.

Add the statuspage-notification-resource release to the list:

ases:
name: concourse
version: latest
name: garden-linux
version: latest
name: statuspage-notification-resource
version: latest

Into the worker job, add the {release: statuspage-notification-resource, name: install} job template that will install the package:

:
me: worker
mplates:
...
- {release: statuspage-notification-resource, name: install-statuspage}

The final change is to explicitly list all the resource types (they are implicit) and add the statuspage-notification-resource package to the list:

:
me: worker
.
operties:
groundcrew:
  resource_types:
  ...
  - type: statuspage-notification
    image: /var/vcap/packages/statuspage-notification-resource

Note that it is the latter two lines that are specific to this BOSH release:

pe: statuspage-notification
age: /var/vcap/packages/statuspage-notification-resource

The former lines should be obtained from the Concourse BOSH release, not the documentation above which might be out of date. Use https://github.com/concourse/concourse/blob/master/jobs/groundcrew/spec#L69-L96

And bosh deploy your Concourse manifest.

Usage

An example mini-pipeline that would update the status:


:
me: hello-world
an:
- task: say-hello
  config:
    platform: linux
    image: "docker:///busybox"
    run:
      path: echo
      args: ["Hello, world!"]
  on_success:
    put: statuspage-update
    params:
      page: <PAGE_ID>
      component: <COMPONENT_ID>
      status: "operational"
  on_failure:
    put: statuspage-update
    params:
      page: <PAGE_ID>
      component: <COMPONENT_ID>
      status: "major_outage"

urces:
me: statuspage-update
pe: statuspage-notification
urce:
url: https://api.statuspage.io/v1/pages
oauth: <OAuth>
Setup pipeline in Concourse
-t concourse1 c -c pipeline.yml --vars-from credentials.yml statuspage-notification-resource-boshrelease

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.