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:
parent
722ab9d926
commit
ea403c5dee
|
@ -14,12 +14,11 @@ define planet::site($git_url) {
|
||||||
require => Package[nginx],
|
require => Package[nginx],
|
||||||
}
|
}
|
||||||
|
|
||||||
# otherwise get a new clone of it
|
vcsrepo { "/var/lib/planet/${name}":
|
||||||
|
ensure => present,
|
||||||
exec { "create_${name}_planet":
|
provider => git,
|
||||||
command => "git clone ${git_url} /var/lib/planet/${name}",
|
source => $git_url,
|
||||||
path => "/bin:/usr/bin",
|
require => File['/var/lib/planet'],
|
||||||
onlyif => "test ! -d /var/lib/planet/${name}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cron { "update_planet_${name}":
|
cron { "update_planet_${name}":
|
||||||
|
|
Loading…
Reference in New Issue