Skip to content

Instantly share code, notes, and snippets.

@geoHeil
Created March 1, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoHeil/ca12ad3476e97ccb80fc to your computer and use it in GitHub Desktop.
Save geoHeil/ca12ad3476e97ccb80fc to your computer and use it in GitHub Desktop.
concourse ci slack notification
---
name: concourse
director_uuid: <%= `bosh status --uuid` %>
releases:
- name: concourse
version: latest
- name: garden-linux
version: latest
- name: slack-notification-resource
version: latest
jobs:
- name: web
instances: 1
resource_pool: concourse
networks:
- name: concourse
static_ips: &web-ips [10.244.8.2]
persistent_disk: 1024 # for consul
templates:
- {release: concourse, name: consul-agent}
- {release: concourse, name: atc}
- {release: concourse, name: tsa}
properties:
atc:
external_url: http://10.244.8.2:8080
development_mode: true
postgresql:
database: &atc-db atc
role: &atc-role
name: atc
password: dummy-postgres-password
consul:
agent:
mode: server
- name: db
instances: 1
resource_pool: concourse
networks: [{name: concourse}]
persistent_disk: 10240
templates:
- {release: concourse, name: consul-agent}
- {release: concourse, name: postgresql}
properties:
postgresql:
databases: [{name: *atc-db}]
roles: [*atc-role]
consul:
agent:
servers: {lan: *web-ips}
- name: worker
instances: 1
resource_pool: concourse
networks: [{name: concourse}]
templates:
- {release: concourse, name: consul-agent}
- {release: concourse, name: groundcrew}
- {release: concourse, name: baggageclaim}
- {release: garden-linux, name: garden}
- {release: slack-notification-resource, name: slack-notification-resource}
properties:
garden:
# cannot enforce quotas in bosh-lite
disk_quota_enabled: false
listen_network: tcp
listen_address: 0.0.0.0:7777
allow_host_access: true
consul:
agent:
servers: {lan: *web-ips}
groundcrew:
additional_resource_types:
- type: slack-notification
image: /var/vcap/packages/slack-notification-resource
networks:
- name: concourse
type: manual
subnets:
- range: 10.244.8.0/24
gateway: 10.244.8.1
static: *web-ips
resource_pools:
- name: concourse
network: concourse
cloud_properties: {}
stemcell:
name: bosh-warden-boshlite-ubuntu-trusty-go_agent
version: latest
compilation:
workers: 3
network: concourse
cloud_properties: {}
update:
canaries: 1
max_in_flight: 3
serial: false
canary_watch_time: 1000-60000
update_watch_time: 1000-60000
atc:
basic_auth_username: admin
atc: basic_auth_password: admin
@geoHeil
Copy link
Author

geoHeil commented Mar 1, 2016

from https://github.com/starkandwayne/slack-notification-resource-boshrelease ---->
The final change is to add the slack-notification-resource package to the list of additional_resource_types:

jobs:
- name: worker
  ...
  properties:
    groundcrew:
      additional_resource_types:
      - type: slack-notification
        image: /var/vcap/packages/slack-notification-resource

Did I add it correctly? As the whole node for groundcrew https://github.com/concourse/concourse/blob/master/manifests/bosh-lite.yml

groundcrew:
      additional_resource_types:
      - type: slack-notification
        image: /var/vcap/packages/slack-notification-resource


```did not exist before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment