
puppet-httpd is the openstack-infra version of puppetlabs-apache (0.0.4) release. This patchset will remove the puppetlabs-apache namespace from -infra allowing for possible future patchsets to use newer puppetlabs-apache modules. Change-Id: Id1010fda360e7dceedca8dd1df009ca75a610777 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
29 lines
720 B
Puppet
29 lines
720 B
Puppet
define planet::site(
|
|
$git_url,
|
|
$vhost_name = "planet.${name}.org"
|
|
) {
|
|
include ::httpd
|
|
|
|
::httpd::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
|