Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
pull channel name from vault
Browse files Browse the repository at this point in the history
  • Loading branch information
dwradcliffe committed Aug 7, 2014
1 parent fcd6c45 commit b5df487
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Expand Up @@ -286,7 +286,7 @@ GRAPH
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-ruby (0.0.1)
rubygems-sensu (0.0.71)
rubygems-sensu (0.0.72)
chef-vault (>= 0.0.0)
sensu (>= 0.0.0)
rubygems-ssh (0.0.4)
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/rubygems-sensu/metadata.rb
@@ -1,7 +1,7 @@
name 'rubygems-sensu'
maintainer 'RubyGems.org ops team'

version '0.0.71'
version '0.0.72'

depends 'chef-vault'
depends 'sensu'
Expand Down
3 changes: 2 additions & 1 deletion cookbooks/rubygems-sensu/recipes/slack.rb
Expand Up @@ -15,7 +15,8 @@
group 'sensu'
variables(
token: slack_creds['token'],
team_name: slack_creds['team_name']
team_name: slack_creds['team_name'],
channel: slack_creds['channel']
)
end

Expand Down
2 changes: 1 addition & 1 deletion cookbooks/rubygems-sensu/templates/default/slack.json.erb
Expand Up @@ -3,6 +3,6 @@
"token": "<%= @token %>",
"team_name": "<%= @team_name %>",
"bot_name": "sensu",
"channel": "#monitoring"
"channel": "<%= @channel %>"
}
}

0 comments on commit b5df487

Please sign in to comment.