67e81cc7fa
Remove remaining remove_nginx usage (it has been removed). Change-Id: Icfd8c3ad7205777e50722ea82d1922bcad523e48 Reviewed-on: https://review.openstack.org/29819 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
29 lines
718 B
Puppet
29 lines
718 B
Puppet
define planet::site(
|
|
$git_url,
|
|
$vhost_name = "planet.${name}.org"
|
|
) {
|
|
include apache
|
|
|
|
apache::vhost { $vhost_name:
|
|
docroot => "/srv/planet/${name}",
|
|
port => 80,
|
|
priority => '50',
|
|
require => File['/srv/planet'],
|
|
}
|
|
|
|
vcsrepo { "/var/lib/planet/${name}":
|
|
ensure => present,
|
|
provider => git,
|
|
require => File['/var/lib/planet'],
|
|
source => $git_url,
|
|
}
|
|
|
|
cron { "update_planet_${name}":
|
|
command => "date >> /var/log/planet/${name}.log && cd /var/lib/planet/${name} && git pull -q --ff-only && planet /var/lib/planet/${name}/planet.ini >> /var/log/planet/${name}.log 2>&1",
|
|
minute => '*/5',
|
|
user => 'root',
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|