Replace manual git work with vcsrepo module.

Change-Id: Ia0f3acd50aab07cc83d13cd12c8f7fc67f1c697d
Reviewed-on: https://review.openstack.org/10832
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Approved: Monty Taylor <mordred@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Monty Taylor 2012-08-04 09:55:37 -05:00 committed by Jenkins
parent aa77402660
commit 493c1b9971
1 changed files with 4 additions and 16 deletions

View File

@ -6,7 +6,6 @@ class lodgeit {
"python-werkzeug",
"python-simplejson",
"python-pygments",
"mercurial",
"drizzle",
"python-mysqldb" ]
@ -34,21 +33,10 @@ class lodgeit {
hasrestart => true
}
# if we already have the git repo the pull updates
exec { "update_lodgeit":
command => "git pull --ff-only",
cwd => "/tmp/lodgeit-main",
path => "/bin:/usr/bin",
onlyif => "test -d /tmp/lodgeit-main"
}
# otherwise get a new clone of it
exec { "get_lodgeit":
command => "git clone git://github.com/openstack-ci/lodgeit.git /tmp/lodgeit-main",
path => "/bin:/usr/bin",
onlyif => "test ! -d /tmp/lodgeit-main"
vcsrepo { "/tmp/lodgeit-main":
ensure => latest,
provider => git,
source => "https://github.com/openstack-ci/lodgeit.git",
}
# create initial git DB backup location