Add change-abandoned hook for gerrit in puppet

Gerrit manifest for review servers was lacking
the change-abandoned hook, even though jeepyb had
already support for notifying LP bug when the linked
review was being abandoned.
This change adds the missing hook to the gerrit manifest
as a file resource.

Closes-Bug: 1319305
Change-Id: I07555bfbfe255239ab1aeaa5d14bcfa807005faf
This commit is contained in:
Ricardo Carrillo Cruz 2014-05-15 18:32:50 +00:00
parent dc8b2ae79f
commit 3b0ff58b27
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,4 @@
#!/bin/sh
# Use timeout to kill any process running longer than 10 minutes.
timeout -k 2m 10m /usr/local/bin/update-bug change-abandoned "$@"

View File

@ -295,6 +295,16 @@ class openstack_project::gerrit (
require => Class['::gerrit'],
}
file { '/home/gerrit2/review_site/hooks/change-abandoned':
ensure => present,
owner => 'root',
group => 'root',
mode => '0555',
source => 'puppet:///modules/openstack_project/gerrit/change-abandoned',
replace => true,
require => Class['::gerrit'],
}
file { '/home/gerrit2/review_site/hooks/notify_impact.yaml':
ensure => present,
source =>