Merge "Update zuul-env on job nodes"
This commit is contained in:
commit
c729730b5d
@ -1 +0,0 @@
|
|||||||
-e git+https://git.openstack.org/openstack-infra/zuul#egg=zuul
|
|
@ -144,20 +144,24 @@ class openstack_project::slave_common(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/etc/zuul-env-reqs.txt':
|
vcsrepo { '/opt/zuul':
|
||||||
ensure => present,
|
ensure => latest,
|
||||||
owner => 'root',
|
provider => git,
|
||||||
group => 'root',
|
revision => 'master',
|
||||||
mode => '0444',
|
source => 'https://git.openstack.org/openstack-infra/zuul.git',
|
||||||
source => 'puppet:///modules/openstack_project/zuul-env-reqs.txt',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python::virtualenv { '/usr/zuul-env':
|
python::virtualenv { '/usr/zuul-env':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
requirements => '/etc/zuul-env-reqs.txt',
|
|
||||||
owner => 'root',
|
owner => 'root',
|
||||||
group => 'root',
|
group => 'root',
|
||||||
timeout => 0,
|
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'],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user