13773cd105
Yet another bunch of puppet-lint fixes. Change-Id: I9574cf1c5e35620b12e4d5e2bd6b2eb4d320c935 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-on: https://review.openstack.org/13988 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
30 lines
741 B
Puppet
30 lines
741 B
Puppet
define planet::site(
|
|
$git_url,
|
|
$vhost_name = "planet.${name}.org"
|
|
) {
|
|
include apache
|
|
include remove_nginx
|
|
|
|
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
|