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 722ab9d926
commit ea403c5dee
1 changed files with 5 additions and 6 deletions

View File

@ -14,12 +14,11 @@ define planet::site($git_url) {
require => Package[nginx],
}
# otherwise get a new clone of it
exec { "create_${name}_planet":
command => "git clone ${git_url} /var/lib/planet/${name}",
path => "/bin:/usr/bin",
onlyif => "test ! -d /var/lib/planet/${name}"
vcsrepo { "/var/lib/planet/${name}":
ensure => present,
provider => git,
source => $git_url,
require => File['/var/lib/planet'],
}
cron { "update_planet_${name}":