Merge "Update zuul-env on job nodes"

This commit is contained in:
Jenkins 2016-08-24 21:26:19 +00:00 committed by Gerrit Code Review
commit c729730b5d
2 changed files with 12 additions and 9 deletions

View File

@ -1 +0,0 @@
-e git+https://git.openstack.org/openstack-infra/zuul#egg=zuul

View File

@ -144,20 +144,24 @@ class openstack_project::slave_common(
}
}
file { '/etc/zuul-env-reqs.txt':
ensure => present,
owner => 'root',
group => 'root',
mode => '0444',
source => 'puppet:///modules/openstack_project/zuul-env-reqs.txt',
vcsrepo { '/opt/zuul':
ensure => latest,
provider => git,
revision => 'master',
source => 'https://git.openstack.org/openstack-infra/zuul.git',
}
python::virtualenv { '/usr/zuul-env':
ensure => present,
requirements => '/etc/zuul-env-reqs.txt',
owner => 'root',
group => 'root',
timeout => 0,
require => File['/etc/zuul-env-reqs.txt'],
}
exec { 'zuul-env-update':
command => '/usr/zuul-env/bin/pip --log /usr/zuul-env/pip.log install /opt/zuul',
refreshonly => true,
subscribe => Vcsrepo['/opt/zuul'],
require => Python::Virtualenv['/usr/zuul-env'],
}
}