512a3303a8
Also remove search.pp since this is just a place holder. Change-Id: I2a862c84d6cb3d30abb5e9bfc5e139e9ec0b7df9 Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-on: https://review.openstack.org/14988 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
40 lines
811 B
Puppet
40 lines
811 B
Puppet
# Class: mediawiki
|
|
#
|
|
class mediawiki(
|
|
$role,
|
|
$site_hostname,
|
|
$mediawiki_location = ''
|
|
) {
|
|
if ($role == 'app' or $role == 'all') {
|
|
require apache::dev
|
|
include apache
|
|
include mediawiki::php
|
|
include mediawiki::app
|
|
|
|
package { 'libapache2-mod-php5':
|
|
ensure => present,
|
|
}
|
|
|
|
apache::vhost { $site_hostname:
|
|
port => 443,
|
|
docroot => 'MEANINGLESS ARGUMENT',
|
|
priority => '50',
|
|
template => 'mediawiki/apache/mediawiki.erb',
|
|
ssl => true,
|
|
}
|
|
a2mod { 'rewrite':
|
|
ensure => present,
|
|
}
|
|
a2mod { 'expires':
|
|
ensure => present,
|
|
}
|
|
}
|
|
if ($role == 'image-scaler' or $role == 'all') {
|
|
include mediawiki::image_scaler
|
|
include mediawiki::php
|
|
include mediawiki::app
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|