Add python-yaml to github module.

Change-Id: Id79068e1295cbc7ba01a2c9b8db7db40230a2296
Reviewed-on: https://review.openstack.org/14412
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-10-12 14:48:56 -07:00 committed by Jenkins
parent 15daf9a9f2
commit d0404e17cb
1 changed files with 13 additions and 2 deletions

View File

@ -12,6 +12,14 @@ class github (
require => Class[pip]
}
# A lot of things need yaml, be conservative requiring this package to avoid
# conflicts with other modules.
if ! defined(Package['python-yaml']) {
package { 'python-yaml':
ensure => present,
}
}
group { "github":
ensure => present
}
@ -68,7 +76,10 @@ class github (
user => github,
minute => "*/5",
command => 'sleep $((RANDOM\%60+90)) && python /usr/local/github/scripts/close_pull_requests.py',
require => File['/usr/local/github/scripts'],
require => [
File['/usr/local/github/scripts'],
Package['python-yaml'],
Package['PyGithub'],
],
}
}