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:
parent
2ede7d31e3
commit
eea1ad1cd9
@ -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'],
|
||||
],
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user